mobile data on/off toggle widget

This is a discussion on mobile data on/off toggle widget within the Motorola Backflip Development & Hacking forums, part of the Motorola Backflip category; I'm always having to open Quick Settings to turn 3G on and off (anyone know any other way?) and its getting old. I'm slowly reading ...

Results 1 to 2 of 2

Thread: mobile data on/off toggle widget

  1. #1
    Junior Member v1nsai's Avatar
    Join Date
    Apr 2010
    Posts
    13

    mobile data on/off toggle widget

    I'm always having to open Quick Settings to turn 3G on and off (anyone know any other way?) and its getting old. I'm slowly reading through the SDK and I've had a few semesters of Java but never really used it, and I wanna write a data toggle widget that appends/removes a string to the "wap" line of the apn settings like Quick Settings does to make the line not parse properly. It's ugly but it turns off battery sucking 3g.

    Anyway, I've been reading around trying to find how to access the apn settings, and that's where it gets hazy. The only reference I can find is in the SDK docs under settings, there's a string constant called ACTION_APN_SETTINGS, but that's it. Apparently it's possible if Quick Settings can do it, but Google doesn't go into any further detail in the SDK, and all I can find on forums is people asking how to use it, so I figured I'd ask here and post an answer if I find anything.

    Maybe Android is still Linux enough to have a convenient text file somewhere on the phone that contains all the APN information :-D

  2. Android.net is the premier Android Forum. Registered users do not see these ads. .

  3. #2
    Junior Member v1nsai's Avatar
    Join Date
    Apr 2010
    Posts
    13
    Ok, here's something. I was playing with the DroidAPI app (free download) and found a group of Strings called NAME, APN, PROXY, PORT etc., but I can't find the class Telephony.Carriers() anywhere, which is apparently where all the fields are. I can't find a reference to any of the fields or the class anywhere in the android deveploper wiki.

    So what the hell?

Remove Ads

http://www.scramblerducati.org/

Sponsored Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. TWLauncher
    By DF Member in forum Samsung Epic 4G
    Replies: 11
    Last Post: 01-05-2012, 08:30 AM
  2. Replies: 0
    Last Post: 01-05-2011, 02:12 PM
  3. Anti virus/protection?
    By G2 Forum User in forum HTC G2
    Replies: 4
    Last Post: 11-05-2010, 02:35 AM
  4. update is out now
    By G2 Forum User in forum HTC G2
    Replies: 6
    Last Post: 11-04-2010, 12:27 AM
  5. Help: Tm G2 vs BB 9780
    By G2 Forum User in forum HTC G2
    Replies: 12
    Last Post: 10-30-2010, 04:58 PM

Search tags for this page

android data off widget
,
android data toggle widget
,
android deveploper
,
android java toggle 3g
,
android phone widget turn mobile data on off
,
android, java, switch on/off mobile data
,
cell data widget
,
data toggle android api
,

data widget is always on

,
java code to toggle cellular data in android
,
mobile data on off android widget
,
switch on/off mobile data (3g) android code
,
what is toggle widgets by motorola
,

widget data on off

,
widget for java mobile
Click on a term to search our sites for related topics.
Android Forum