In terms of habits, includeProgramThe shortcut program becomes the Home program. In fact, we call the first (or the first few) Application shown to the user as home, which is determined in androidmanifest. xml.
<Activity Android: Name = ". selectlanguageactivity"
Android: screenorientation = "portrait"
Android: Label = "@ string/app_name">
<Intent-filter Android: Priority = "2">
<Action Android: Name = "android. Intent. Action. Main"/>
<Category Android: Name = "android. Intent. Category. Home"/>
<Category Android: Name = "android. Intent. Category. Default"/>
</Intent-filter>
</Activity>
This is the setupwizard that will appear after the factory reset. This is prior to the home application we are used.
second, why not start every time:
packagemanager PM = getpackagemanager ();
componentname name = new componentname (this, selectlanguageactivity. class);
PM. setcomponentenabledsetting (name,
packagemanager. component_enabled_state_disabled,
packagemanager. dont_kill_app);
The last shareduserid and platform signature.
<Manifest xmlns: Android = "http://schemas.android.com/apk/res/android"
Android: shareduserid = "android. uid. Phone"
Package = "com. XXX. setupwizard"
Android: versioncode = "1"
Android: versionname = "1.0" type = "codeph" text = "/codeph">
Android. mk:
Local_certificate: = Platform