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
- <application> <activity=
- => <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
- class
- void super
- );
-
- newthis
-
- }
The native implementation of Defaultactivity has done only two things:
- 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.
- 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)