Re: [android-developers] How to start Intent of Packet data network

2012-02-13 Thread Omollo Ateng
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

Re: [android-developers] How to start Intent of Packet data network

2012-02-13 Thread Dhaval Varia
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);

[android-developers] How to start Intent of Packet data network

2012-02-12 Thread Dhaval Varia
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.