TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / android / appmgr / src / org / anbox / appmgr / LauncherActivity.java
1 /*
2  * Copyright (C) 2016 Simon Fels <morphis@gravedo.de>
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3, as published
6  * by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranties of
10  * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11  * PURPOSE.  See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program.  If not, see <http://www.gnu.org/licenses/>.
15  *
16  */
17
18 package org.anbox.appmgr;
19
20 import android.app.Activity;
21 import android.os.Bundle;
22 import android.util.Log;
23 import android.content.Intent;
24
25 public final class LauncherActivity extends Activity {
26     private static final String TAG = "AnboxAppMgr";
27
28     @Override
29     public void onCreate(Bundle info) {
30         super.onCreate(info);
31
32         Intent intent = new Intent(this, LauncherService.class);
33         startService(intent);
34
35         Log.i(TAG, "Created launcher activity");
36     }
37
38     @Override
39     public void onDestroy() {
40         Log.i(TAG, "Destroyed launcher activity");
41
42         Intent intent = new Intent(this, LauncherService.class);
43         stopService(intent);
44
45         super.onDestroy();
46     }
47 }