X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fandroid%2Fappmgr%2Fsrc%2Forg%2Fanbox%2Fappmgr%2FLauncherActivity.java;fp=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fandroid%2Fappmgr%2Fsrc%2Forg%2Fanbox%2Fappmgr%2FLauncherActivity.java;h=d89b03e7500e196989744a76e02ff82b5b19fc1f;hb=e26c1ec581be598521517829adba8c8dd23a768f;hp=0000000000000000000000000000000000000000;hpb=6699c1aea74eeb0eb400e6299079f0c7576f716f;p=iec.git 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 index 0000000..d89b03e --- /dev/null +++ b/src/type3_AndroidCloud/anbox-master/android/appmgr/src/org/anbox/appmgr/LauncherActivity.java @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2016 Simon Fels + * + * 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 . + * + */ + +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(); + } +}