This is to check if GPRS is on and the network, write it within a function.
String provider = Settings.Secure.getString(getContentResolver(),
Settings.Secure.LOCATION_PROVIDERS_ALLOWED);
if(!provider.equals()){
//GPS Enabled
Is it for gps or gprs?
On Feb 13, 2012 1:42 PM, Omollo Ateng omollo.at...@gmail.com wrote:
This is to check if GPRS is on and the network, write it within a function.
String provider = Settings.Secure.getString(getContentResolver(),
Settings.Secure.LOCATION_PROVIDERS_ALLOWED);
My application required to have internet connection.
I need two things:
1. Check Weather Internet (GPRS Not wifi) is on??
2. If it is off then make it on. OR start Intent to make it on...
Please help...
--
Thanks Best Regards.
3 matches
Mail list logo