Top Android Provision (Setup Wizard)

Source: Internet
Author: User


Many of the framework designs in Android already exist, but in the release version of the market, they do not have a good understanding of the design intentions of Android to make their own customizations, or do a redundant implementation of their own. Provision in Android is actually a setup wizard program that guides the user through a variety of settings, just like when it's factory or factory reset.

In the native code of Android, provision is not compiled into the system, which is probably why provision is not known. Another sdksetup is a program that implements the same functionality, and in the name of the Sdksetup is the program used to complete the initial setup in a simulated environment.

Provision is defined in its androidmanifest.xml as follows:

[HTML]View Plaincopy
  1. <application> <activity=
  2. => <Intent-filter=> <Action= /> <Category=/> <Category=/> intent-filter </ >&NBSP;&NBSP;
 

The category of Activity defaultactivity is defined as home, and the priority is 1, which is an earlier procedure than the System launcher startup.

The implementation of defaultactivity in provision is as follows:

[Java]View Plaincopy
  1. class   
  2. void super
  3. );
  4.   
  5. newthis
  6.   
  7. }  
 

The native implementation of Defaultactivity has done only two things:

    1. There is no UI interface, just set the Settings.Secure.DEVICE_PROVISIONED in the setting entry to 1, indicating other frameworks and other programs that the machine has provisioned.
    2. line#10~ #12之后, Launcher will be launched to complete the boot process.

Note : There is no provisioned machine, some features are not the same. For example, if there is no provisioned, the lock screen program will not lock screen, the home key processing is different; the phone is not to come in, etc.

With provision, you can customize:

    • Add settings for initial settings, such as time zone/time setting, whether background data is allowed, whether the program is allowed to install on non-Android market, etc. that can be done without user intervention. In particular, you can see the sdksetup in the Defaultactivity completed settings, in addition to some of the settings set up, and there is not much difference.
    • Join the UI design and guide the user through the setup process that requires the user to participate in the selection or input, which is the Setup Wizard's work.
    • Previous Android get screen size and density
    • Next resolves an android TextView auto-wrap issue

Top Android Provision (Setup Wizard)

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.