TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / android / appmgr / src / org / anbox / appmgr / LauncherActivity.java
diff --git a/src/type3_AndroidCloud/anbox-master/android/appmgr/src/org/anbox/appmgr/LauncherActivity.java b/src/type3_AndroidCloud/anbox-master/android/appmgr/src/org/anbox/appmgr/LauncherActivity.java
new file mode 100644 (file)
index 0000000..d89b03e
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 3, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranties of
+ * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
+ * PURPOSE.  See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+package org.anbox.appmgr;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.util.Log;
+import android.content.Intent;
+
+public final class LauncherActivity extends Activity {
+    private static final String TAG = "AnboxAppMgr";
+
+    @Override
+    public void onCreate(Bundle info) {
+        super.onCreate(info);
+
+        Intent intent = new Intent(this, LauncherService.class);
+        startService(intent);
+
+        Log.i(TAG, "Created launcher activity");
+    }
+
+    @Override
+    public void onDestroy() {
+        Log.i(TAG, "Destroyed launcher activity");
+
+        Intent intent = new Intent(this, LauncherService.class);
+        stopService(intent);
+
+        super.onDestroy();
+    }
+}