1. Are you ready for the Galaxy S20? Here is everything we know so far!

Mobile Data Switch

Discussion in 'Android Apps & Games' started by markwimpory, Jan 2, 2012.

  1. markwimpory

    markwimpory Lurker
    Thread Starter

    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.
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Kicksilver

    Kicksilver Android Enthusiast

  3. markwimpory

    markwimpory Lurker
    Thread Starter

    Thanks, but I already have a widget, what i need is an api call. Any ideas?
     
  4. Kicksilver

    Kicksilver Android Enthusiast

    I didn't understand what you want, then.
     
  5. smankins

    smankins Well-Known Member

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

Share This Page

Loading...