blob: 64979cb0c20c69dc81bc09fcce18948e85136acb [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.app.Activity;
import android.content.Intent;
import android.os.Bundle;
/**
* Entry point for the Mojo Shell application.
*/
public class MojoShellActivity extends Activity {
@Override
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
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();
}
}