I want to manually close wifi and data roaming in android. After finishing with processing some data i want to enable it back. How can i do this programatically?
I only find this howto but is not working in my android 4.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For wifi (requires
android.permission.CHANGE_WIFI_STATE):For data (requires
android.permission.CHANGE_NETWORK_STATE, from here):