File tree Expand file tree Collapse file tree 4 files changed +52
-6
lines changed
Expand file tree Collapse file tree 4 files changed +52
-6
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,24 @@ $ adb root
5454$ adb shell setprop persist.sys.timezone "America/Denver"
5555```
5656
57+ ## Enable auto-launch behavior
58+
59+ This sample app is currently configured to launch only when deployed from your
60+ development machine. To enable the main activity to launch automatically on boot,
61+ add the following ` intent-filter ` to the app's manifest file:
62+
63+ ``` xml
64+ <activity ...>
65+
66+ <intent-filter >
67+ <action android : name =" android.intent.action.MAIN" />
68+ <category android : name =" android.intent.category.HOME" />
69+ <category android : name =" android.intent.category.DEFAULT" />
70+ </intent-filter >
71+
72+ </activity >
73+ ```
74+
5775## License
5876
5977Copyright 2017 The Android Open Source Project, Inc.
Original file line number Diff line number Diff line change 3232 <category android : name =" android.intent.category.LAUNCHER" />
3333 </intent-filter >
3434
35- <!-- Launch as default on IoT startup -->
35+ <!--
36+ Uncomment the following intent filter block to enable this activity to
37+ launch automatically on boot, and re-launch if the app terminates.
38+ -->
39+ <!--
3640 <intent-filter>
3741 <action android:name="android.intent.action.MAIN"/>
38- <category android : name =" android.intent.category.IOT_LAUNCHER " />
42+ <category android:name="android.intent.category.HOME "/>
3943 <category android:name="android.intent.category.DEFAULT"/>
4044 </intent-filter>
45+ -->
4146 </activity >
4247 </application >
4348
44- </manifest >
49+ </manifest >
Original file line number Diff line number Diff line change @@ -54,6 +54,24 @@ $ adb root
5454$ adb shell setprop persist.sys.timezone "America/Denver"
5555```
5656
57+ ## Enable auto-launch behavior
58+
59+ This sample app is currently configured to launch only when deployed from your
60+ development machine. To enable the main activity to launch automatically on boot,
61+ add the following ` intent-filter ` to the app's manifest file:
62+
63+ ``` xml
64+ <activity ...>
65+
66+ <intent-filter >
67+ <action android : name =" android.intent.action.MAIN" />
68+ <category android : name =" android.intent.category.HOME" />
69+ <category android : name =" android.intent.category.DEFAULT" />
70+ </intent-filter >
71+
72+ </activity >
73+ ```
74+
5775## License
5876
5977Copyright 2018 The Android Open Source Project, Inc.
Original file line number Diff line number Diff line change 3232 <category android : name =" android.intent.category.LAUNCHER" />
3333 </intent-filter >
3434
35- <!-- Launch as default on IoT startup -->
35+ <!--
36+ Uncomment the following intent filter block to enable this activity to
37+ launch automatically on boot, and re-launch if the app terminates.
38+ -->
39+ <!--
3640 <intent-filter>
3741 <action android:name="android.intent.action.MAIN"/>
38- <category android : name =" android.intent.category.IOT_LAUNCHER " />
42+ <category android:name="android.intent.category.HOME "/>
3943 <category android:name="android.intent.category.DEFAULT"/>
4044 </intent-filter>
45+ -->
4146 </activity >
4247 </application >
4348
44- </manifest >
49+ </manifest >
You can’t perform that action at this time.
0 commit comments