Search code examples
androidsettingsandroid-4.0-ice-cream-sandwichandroid-wireless

Call wireless settings screen with back button


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. Wireless settings with back button

How to open same screen from my app? Thanks


Solution

  •     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?.