Call wireless settings screen with back button

陌路散爱 提交于 2020-01-06 08:00:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!