Can i get internet if i’m using Access Point for WiFi, i’m using the code
ConnectivityManager mConnectivity =(ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
mConnectivity.startUsingNetworkFeature(0, "TYPE_MOBILE");
Thanks
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.
I think this SO post answers that question in general you can programmatically turn wifi off, which will force the connection to go 3G if available, or you set the network preference from the connectivity manager.
You should be really careful if you are developing a user application, they are not going to appreciate you forcing them to potentially incur 3G charges without notice.