blob: 954ecd146f46918da9991a1a2bb985475d000f4f [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.mojo.shell;
import android.content.Intent;
/**
* Entry point for the Mojo Shell application.
*/
public class MojoShellActivity extends BaseActivity {
/**
* @see BaseActivity#onCreateWithPermissions()
*/
@Override
protected void onCreateWithPermissions() {
Intent serviceIntent = new Intent(this, ShellService.class);
// Copy potential startup arguments.
serviceIntent.putExtras(getIntent());
if (getIntent().getData() != null) {
serviceIntent.putExtra(
ShellService.APPLICATION_URL_EXTRA, getIntent().getData().toString());
}
startService(serviceIntent);
finish();
}
}