summaryrefslogtreecommitdiff
path: root/src/com/android/stk/StkLauncherActivity.java
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:32:37 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:32:37 -0800
commit9d9730aecb72e830ef12d66ce6e084d8ae0928f2 (patch)
tree3be2a9c9fb760c51c1571a4af9646d4d09ea8af2 /src/com/android/stk/StkLauncherActivity.java
parent4f140d1b04066e68d8236a41765ad06029e00105 (diff)
downloadStk-9d9730aecb72e830ef12d66ce6e084d8ae0928f2.tar.gz
auto import from //depot/cupcake/@135843
Diffstat (limited to 'src/com/android/stk/StkLauncherActivity.java')
-rw-r--r--src/com/android/stk/StkLauncherActivity.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/com/android/stk/StkLauncherActivity.java b/src/com/android/stk/StkLauncherActivity.java
new file mode 100644
index 0000000..df9fa24
--- /dev/null
+++ b/src/com/android/stk/StkLauncherActivity.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2007 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.stk;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+
+/**
+ * Launcher class. Serve as the app's MAIN activity, send an intent to the
+ * StkAppService and finish.
+ *
+ */
+public class StkLauncherActivity extends Activity {
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+
+ Bundle args = new Bundle();
+ args.putInt(StkAppService.OPCODE, StkAppService.OP_LAUNCH_APP);
+ startService(new Intent(this, StkAppService.class).putExtras(args));
+
+ finish();
+ }
+}