Android tips-boot wifi settings
There are wifi settings in the boot Guide (Setupwizard, Guide). I have to do the following:
Intent intent = new Intent (); intent. setClassName ("com. android. settings "," com. android. settings. wifi. wifiSetupActivity "); intent. putExtra ("firstRun", false); startActivity (intent );
If you need to add your own things to the wifi setting interface at this time, you need to write the layout from setup_preference. For the sake of security (whether the modification will affect other aspects), I will copy setup_preference to wizard_setup_preference for rewriting, and copy WifiSettings to WizardWifiSettings for rewriting.
Note that the wizardwifisetaskextends PreferenceActivity is no longer a RestrictedSettingsFragment, And the wizardwifisetaskis configured in AndroidManifest. xml.
The settings for enabling Wifi are also changed:
Intent intent = new Intent (); intent. setClassName ("com. android. settings", "com. android. settings. wifi. WizardWifiSettings"); startActivity (intent );