I'm not sure how to do this or if its possible. Android phones by
default always have a data connection on and active by default. But if
the user overrides this And turns data off, I don't know if that can
be bypassed.

On Mar 22, 8:57 am, guiridemeer <[email protected]> wrote:
> Hi,
>
> I am developing an application for people with disabilities (down
> syndrome and so on) and I need to take the control of Data Connection.
>
> My application sends information about the phone activity to a server
> that is very useful for people wiht disabilities parents to know what
> their kids are doing.
>
> So i would like to force the data connection to be always active.
>
> I can detect the Airplane mode ON and change it to OFF with:
>
> Settings.System.putInt(context.getContentResolver(),Settings.System.AIRPLAN 
> E_MODE_ON,
> 0);
> Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
> intent.putExtra("state", 0);
> context.sendBroadcast(intent);
>
> And i would like to do the same with data connecion, in the case a
> user change to no active I would like to change to active data
> connection automaticly.
>
> is that possible?
>
> Thanks in advance.

-- 
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

Reply via email to