Android starts the first program

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.