Is it for gps or gprs?
On Feb 13, 2012 1:42 PM, "Omollo Ateng" <[email protected]> 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);
> if(!provider.equals("")){
> //GPS Enabled
> Toast.makeText(EmodroidActivity.this, "Your GPS is on: "
> + provider,Toast.LENGTH_LONG).show();
> }else{
> Intent intent = new
> Intent(Settings.ACTION_SECURITY_SETTINGS);
> startActivity(intent);
> }
>
>
>
> On Mon, Feb 13, 2012 at 10:32 AM, Dhaval Varia <[email protected]>wrote:
>
>> 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.
>>
>> ----------------------------------------------------------------------------------------
>> Dhaval varia
>> Assistant Professor
>> Govt Engineering College,Modasa
>> (9924343883)
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Be good to not only people but also machines
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en