On my android I use WIFI and 3gdata traffic how to toggle off and on 3g data because it is not unlimited… I need just a class/function line of code that will show me TelephonyManager.DATA_TRAFIC is enable = false;
Share
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.
It depends what android version you are running. Take a look at my code for a widget I developed.
The line of code you need is
The “legacy” method is for pre-2.2 android version which uses TelephonyManager.