Thursday, February 21, 2013

[android-developers] How to enable data roaming programmatically?


Is there a way to turn on data roaming programmatically?
I m writing an app to turn on Wi-Fi, Mobile data, and data roaming.
I have found ways to turn on Wi-Fi and mobile dat
I have tried 

ServiceState serviceState = new ServiceState(); serviceState.setRoaming(true);

but this doesn't work.. 

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment