• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Mobile Data Switch

I'm looking to write an app which needs to include the ability to switch mobile data on and off. Looking at the discussions so far the main way used by apps is to change the APN name, but this seems pretty ugly.

On my phone, there is a widget to do this, so it must be possible programatically.

Does anyone have up to date info about whether this is possible in the current api versions.
 
I use this one: https://market.android.com/details?...sMSwxLDEsImNvbS5mYXJwcm9jLmRhdGEuZW5hYmxlciJd

RsPRE6wEbS6sZ9doVxdSJ-dJoyEYzcHklBpxcU0WEgZBOnEvsjf_iLAqMtX66ld0gh8=w124


The widget icon is just like the Power Control buttons, so it blends in nicely.
 
You might look at an app called Widgetsoid and see how it does just that. It does rename the APN but I think it also uses some other methods. Don't know how much it discusses the way it does it, though.
 
Back
Top Bottom