问题
If there is no wireless connection and no logged in google account when you open Play Market and choose new or existing account it opens specific wireless settings screen with back button at the bottom.
How to open same screen from my app? Thanks
回答1:
Intent intent = new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK);
intent.putExtra("only_access_points", true);
intent.putExtra("extra_prefs_show_button_bar", true);
intent.putExtra("wifi_enable_next_on_connect", true);
startActivityForResult(intent, 1);
This should do it. Reverse engineered from google code.
Copied from How can I overlay a 'back' and 'next' button on a " pick wifi network " window?.
回答2:
I am not sure but maybe with a preference intent. I know you can call other settings with that one.
来源:https://stackoverflow.com/questions/11652483/call-wireless-settings-screen-with-back-button