Adding Data[GPRS/EDGE/3G] Disable option - G1 Android Development

Hello Guys,
Recently I had Gone out of my Free 6 months Free 100MB of Data per Month,
Means It was like If You use an Android Phone on Airtel Network(India), You Get Free Data Worth 100 MB per Month Till First 6 Months.
So Since 6 Months Were Done, It Started Charging me 30p/50kb & It was too costly for one with an Android Phone.
Even If I Turned On the Phone & then Switch to Wi-Fi, mean while if 2-5 kb even if was cut, It used to charge me 30p.
************************************************************
So As to Avoid this, In HERO ROM's We had an Option to Disable Data that too through An Widget; But In Cyanogen / Official ROM's We Cant Even Disable Data...
So To Avoid This, I used To make another new APN with Parameters Disabled for Both Name & APN
So All I Want to Say is that Adding an Data Disabled APN Profile to the Current APN List Through which Everyone can Disable Data on Non-Customized ROM's By just Changing the APN to Disabled

there is already at least one application which does this, i use APNdroid which can either be used from the launcher or as a widget
http://code.google.com/p/apndroid/

Just delete all the APNs. I've been doing this since I first bought my G1. I'm on a college campus with WiFi everywhere so I didn't bother paying for data.

WG-Build 8.2
Added it to my ROM: http://forum.xda-developers.com/showthread.php?t=592466

APNdroid ftw!

anzoshi said:
there is already at least one application which does this, i use APNdroid which can either be used from the launcher or as a widget
http://code.google.com/p/apndroid/
Click to expand...
Click to collapse
Why Would you install a Separate App Every time you Flash / Update / Wipe Data, Or As d00m Said Why to Delete The APN & Type it Again Whenever Needed ??
Instead just go to APN Settings & Change the APN to Disabled
Don't You think This will be better ??

Make a new APN, call it "No Internet" fill it with rubbish then pick it as your APN.
As long as it's selected you can't use data.
Personally I have it set to No Internet, and the MMS entry is separate so I can still send/recieve mms when necessary but I don't use per MB data.

Why noyt just pay for Unlimited internet? whats the point of having G1?????

BrutalHoe said:
Why noyt just pay for Unlimited internet? whats the point of having G1?????
Click to expand...
Click to collapse
Not all countries have carriers that provide unlimited internet, and even if they do it could be very, very expensive. Until recently we had to pay approx. 80USD for unlimited internet.
APNdroid is not perfect. It disables all APNs, even MMS APNs. This is not ideal as we cant receive MMS. So, the Hero way of doing it is ideal.

APNdroid is not perfect. It disables all APNs, even MMS APNs. This is not ideal as we cant receive MMS. So, the Hero way of doing it is ideal.
Click to expand...
Click to collapse
check out the 2.0 dev version of it, it has options for all apn off, only MMS on, or all on

Here's my question. Does putting junk in the apn cause it to try and connect over and over and kill you battery like not having signal? What about with no internet selection? If it does, I could see a need for a better way.

try this http://forum.xda-developers.com/showthread.php?t=541380&highlight=droidwall

it would be very nice if there can be a menu option to disable data when you hold the power button
just like on the magic / hero roms

kiddyfurby said:
it would be very nice if there can be a menu option to disable data when you hold the power button
just like on the magic / hero roms
Click to expand...
Click to collapse
Yeah I too feel So...
By the way There is no Need to Discuss So much on this small stuff....
I had just Posted this thread for ROM Dev's So they can include it in their ROM's if they feel its Usefull...

Disable data on boot
Can't you go in to phone diagnostics and disable data on boot
(only works on HTC branded phones)
Instructions for people who don't know:
Dial *#*#4636#*#*
tap phone information
press menu
tap more
and select both disable data connection and disable data on boot...
then you should have a no data connection without installing unneeded apps

Jeeeeshhh
Just Download "Quick Settings" from the market...
Turn off Network Data
Simply
I use Bar Control to place a shortcut of the app in the notification bar for quick access.
Problem solved!
EDIT: OK i didnt read all posts before replying...Droid Wall sounds much simpler. But i like having my settings available without having to hit the HOME button to select said app.

Related

Captivate Turn off Mobile Data?

I noticed there isn't an option like on the HTC devices that let you choose WIFI ONLY or MOBILE + WIFI. It appears they took that out completely on the Samsung Roms? Is there anyway to disable DATA all the time? I'm in a wifi access point 24/7 literally. Sorry folks, only thing im curious about.
I would like to know also. None of the apps I have tried have worked yet.
Sent from my SAMSUNG-SGH-I897 using XDA App
Did you try to remove AT&T APN in Settings? It will not be able to connect to 3G without APN.
If you do not want to lose your APN nsettings, create new one, dummy, without any real data inside, and make it default one. Same results.
Another thought, if you have your Wi-Fi turned on all the time, your 3G connection should be switched down automatically. At least it works like this on N1. I am just thinking of bying Captivate, if it will have good custom ROM with Froyo, not taking it with all AT&T bloatware on board and Android 2.1
in the market check out the apps APNdroid and quick settings. Both have toggles for data connection
You can also put it in airplane mode and them just turn wifi on.
Sent from my SAMSUNG-SGH-I897 using XDA App
tonysunshine said:
in the market check out the apps APNdroid and quick settings. Both have toggles for data connection
Click to expand...
Click to collapse
Thanks dude I picked that up works Great on Captivate. I'd rather use something like that than enabling wifi 24/7 to eat more battery etc.
I've tried downloading a number of free apps (including APNdroid) to turn off mobile data on my Captivate, but none of them seems to work. All the widgets give the impression that it is off, but I can still open the browser and navigate to websites. Am I doing something wrong, or is it just not possible to fully disable mobile data access on a Captivate?
Yeah you're right
@alobotnad
Hey you're right, APNdroid does nothing it doesn't even shut down the 3G icon on my device now and yes it still connects either way like you said.
Apndroid works fine on my captivate!
Sent from my SAMSUNG-SGH-I897 using XDA App
hazard96 said:
Apndroid works fine on my captivate!
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
You see the 2G icon when you run it?
On my Captivate APNdroid only partially works. Let me explain. If WiFi is on I can disconnect 3G using the APNdroid widget (then if I turn off WiFi and try to surf the web I can't.) However turning 3G back on is more complex. I can turn it back on using the widget if I m connect already to a WiFi network and it will turn 3G on when I turn off WiFi. HOWEVER you must be connected to a WiFi network to turn 3G back on not being connected to a network means the APNdroid button doesn't work. The only solution I found to turn on 3G if I wasn't connected to a WiFi network was to turn on 3G through the APNdroid widget and then restart the phone.
On the other hand I am currently using Juice Defender and their 3G WiFi widget works without having to jump through all those hoops.
@icedfire101
Thanks for the info. I downloaded the free version of JuiceDefender today and so far I am happy with the results.
Samsung Captivate 3G Toggle Solution
After all the digging and searching around, I found two apps that work perfectly on Samsung Captivate for toggling mobile data (3G)
- Juicedefender (it has a widget you can use to toggle 3G quickly)
- SMODA Widget (It doesnt have too many 5 star ratings but works fine on my samsung captivate).
My phone is rooted but I believe it is not a requirement of either of the above apps. Hope this info is useful for other captivate owners.
Most of the other APN / 3G toggle apps on the market try to put a suffix on the APN names in settings. On the samsung captivate this works only with a restart/reboot. Meaning if you disable 3G using the app it would put a suffix like 'disabled' or something to the APN name. But your phone still has the 3G connection using the original APN settings. Only after you restart the phone does it see the 'disabled' APN name and is not able to use and hence no 3G. Vice versa when you want to enable 3G back - needs restart.
I dont know what process the above 2 apps use but they work instantly on my samsung captivate. No need to restart or click a bunch of other settings. They work perfectly and as simple as it should be.
Concepts behind Reliable 3G Toggling on Captivate
First time poster, hope its not immediately dismissed as TLDR.
For the quick-and-dirty just read the “Reliable Data Disabling”.
I am an advocate for understanding concepts. Solutions, hacks and work-arounds have their place, but, if we can understand more about how and why those solutions work, we might be able to repurpose those ideas and use those ideas to make better applications.
Upload and Download of data coming from the cellular network (as opposed to wifi) is likely determined by which network adapter the network connections are making use of. This might be determined by the android sub-system, by looking at the details of currently open sockets; or by lower-level processes looking at the addresses associated with Rx/Tx data. There are several other ways this could be achieved, and I am sure there are countless people who know exactly how that little 3g icon gets on screen; I am merely laying the groundwork to point out that the Captivate (and possibly the Samsung ROM specifically) is apparently more adept at retaining these residual 3g connections than other Android ROMs.
Let’s assume background data opens a series of sockets to communicate with all of the servers that a person’s phone will sync with. By obfuscating the APN like APNDroid does, we are changing the source of the configuration settings, but connections which are "kept-alive" would not check for new settings. This is why those connections remain open after we activate APNDroid. From this idea we derive at least two strategies that work:
Reliable Data Disabling:
Once an APN obfuscator has effectively disabled 3g by spoofing APN information, you can follow up the data-shutdown with the one-two punch of either disabling the cellular radio, or by intelligently terminating connections that don’t match the current APN paradigm. My understanding is there are no apps that take advantage of the latter.
Disabling the radio: Those who have a shortcut-to-activity application, one might feel compelled to use the “Testing” activity to disable the cellular radio, but, the contents of Testing can be dangerous. It is possible to cause problems with your phone using the Phone Information section of "Testing".
The Captivate is nice and fast, enabling flight-mode and disabling it after 10 seconds terminates all residual data-connections 95% of the time.
1. Activate APNDroid (or other APN Obfusctor)
2. Activate Flight Mode (or disable cellular radio some other way)
3 Disable Flight Mode (or reactivate cellular radio)
----
In the past 2 weeks I have discovered that when I re-enable my data, the 3g icon comes back right away but my phone makes no attempt to create new connections using the restored settings. The only solution I have found (so far) is to reboot the phone which only works about half the time. I have not stepped through the problem with the android debugger.
Has anyone else noticed this?
i use smartbar , it turns on/off data and does much more.
Best way to turn off 3g data in samsung captivate
To disable data connection.
In phone menu type *#*#4636#*#*
a menu will appear. In that click "phone information".
click the option button (which is the bottom left button you have in phone).
In that go to "more" option.
inside that click "disable data connection".
Thats it 3g icon will not appear up there in phone. but you can use wi-fi.
To enable it .
do the same thing above . but at the final moment you will be shown a menu with option "enable data connection".
clicking it wont immediately enable data connection. you have to restart your phone.
If you dont want to restart your phone .
then go to settings->wireless and networks->mobile networks->access point names.
there should be apn called "ATT WAP".
Click the more option button at the bottom left and click "reset to default".
Thats it. Now your 3g icon will appear at the top (provided wi-fi is turned off).
tonberry1031 said:
1. Activate APNDroid (or other APN Obfusctor)
2. Activate Flight Mode (or disable cellular radio some other way)
3 Disable Flight Mode (or reactivate cellular radio)
----
In the past 2 weeks I have discovered that when I re-enable my data, the 3g icon comes back right away but my phone makes no attempt to create new connections using the restored settings. The only solution I have found (so far) is to reboot the phone which only works about half the time. I have not stepped through the problem with the android debugger.
Has anyone else noticed this?
Click to expand...
Click to collapse
Good post. You are correct that the captivate will indeed hold onto the valid connection even after modifying the APN. Flight mode toggling will sever the connection forcing it to use the modified settings which should prevent it from reconnecting to data.
The way I disabled my data connection before froyo (all hail froyo data power- button toggle) was to make a shortcut to my APNs and I made a "disabled" APN that was just called disabled. I would have to select it and then toggle flight mode to disable, but reconnecting was as simple and just selecting the real APN and it would immediately reconnect. Never had to restart phone to reconnect, except when using programs from the market.
mettup said:
To disable data connection.
In phone menu type *#*#4636#*#*
a menu will appear. In that click "phone information".
click the option button (which is the bottom left button you have in phone).
In that go to "more" option.
inside that click "disable data connection".
Thats it 3g icon will not appear up there in phone. but you can use wi-fi.
To enable it .
do the same thing above . but at the final moment you will be shown a menu with option "enable data connection".
clicking it wont immediately enable data connection. you have to restart your phone.
If you dont want to restart your phone .
then go to settings->wireless and networks->mobile networks->access point names.
there should be apn called "ATT WAP".
Click the more option button at the bottom left and click "reset to default".
Thats it. Now your 3g icon will appear at the top (provided wi-fi is turned off).
Click to expand...
Click to collapse
So how well does this work?
I'm going to Europe tomorrow and I don't want to be eaten alive on roaming data.
Thanks,
Super
Quick Settings in market, works great on my captivate.
Superguy said:
So how well does this work?
I'm going to Europe tomorrow and I don't want to be eaten alive on roaming data.
Thanks,
Super
Click to expand...
Click to collapse
Depending on what countries you're visiting and for how long, you might consider getting a prepaid local SIM card from that country. I've done that in a couple of different countries and was able to get prepaid data deals for a $2-$3 a day. Will vary greatly depending on country and carrier. And, of course, your phone will have to be carrier-unlocked to use the SIM card.

Question about shutting off data...

I'm going on a cruise soon and want to take my phone. My question is how can I shut off all data but allow text messages to still come in?
How about a tool like smartbar to turn off data and then google voice to send your texts to email
Sent from my SAMSUNG-SGH-I897 using XDA App
You could use the "toggle mobile data"widget that comes with juice defender. I can still receive regular text messages but no picture messages.
Sent from 234 Elm Street
if you have a custom rom with the Extended power Menu option, just bring it up and chose "Data Network Mode" to disable or enable data.
You can also go to settings, Wifi and Network and click on Mobile Network, uncheck "Use Packet Data"
saiy1412 said:
if you have a custom rom with the Extended power Menu option, just bring it up and chose "Data Network Mode" to disable or enable data.
You can also go to settings, Wifi and Network and click on Mobile Network, uncheck "Use Packet Data"
Click to expand...
Click to collapse
What they said. And then open messages hit options and down at the bottom turn off auto download under multi media messaging. That way it will give you the option to download multi media messages when you chose to do so(after you turn mobile data back on). Otherwise the messages will break and you won't be able to retrieve them at a later date. You will still get standard texts as usual.
devilisht2003 said:
I'm going on a cruise soon and want to take my phone. My question is how can I shut off all data but allow text messages to still come in?
Click to expand...
Click to collapse
I use "SwitchPro Widget" to turn off the radios.
"Quick settings" is another good one works well for me.
There have been many threads on this. The simplest thing to do is put the phone in airplane mode and call AT&T and tell em to suspend your service. They will do it for free.
boborone said:
There have been many threads on this. The simplest thing to do is put the phone in airplane mode and call AT&T and tell em to suspend your service. They will do it for free.
Click to expand...
Click to collapse
That is not what he is asking. If you put the phone in airplane mode and have att put an account hold on how would he get sms? I assume what has been posted above would work well for the op.
This is my captivate. There are many like it buy this one is mine.
As long as you don't have data roaming checked (it is unchecked by default), you don't need to do anything.
If you have any 2.2 ROM, you should have an option to disable cell data altogether as well either in settings menu or the power button quick list.
But, as I said above, you shouldn't need to do anything unless you turned on data roaming in settings. I've used my Captivate through couple of Asia countries and didn't have any data roaming charges.
I highly recommend APNDroid. It is the best way that I've found to be able to ensure with certainty that the 3G data radio will not be used.

[Q] Using MMS without a data plan

Hi,
I have a Nexus S with Koodo in Canada. I have the possibility to send unlimited MMS, but it doesn't seem to work. I called the tech support and they are telling me that the only way to be able to use that option, it is by enabling Data.
I don't have any data plan. I asked to the tech support if it was possible to block all the data except the MMS, but he said me no. The only way he gave me is when I'm trying to send a MMS, enable Data and turn it off after. The problem is that many applications automatically use the Internet when possible. For every MB, I would need to pay 3$...
Is it possible to activate Data, but blocking everything on my device? I'm sure their must be a way, like blacklisting every servers except the one dealing with MMS.
Any idea? I tried an application called Quick Settings, but it doesn't seem to work when Data is off and MMS is on.
Thanks
Have you tried to set your APN type to "mms" rather than "default"?
Sent from my Nexus S using xda premium
Is there a way to know before I activate the data that it won't sync my other applications?
I don't think so, but if you activate data with only an mms apn present, I don't think you will see a 3g icon in your status bar unless you're sending an mms.
Sent from my Nexus S using xda premium
go to settings->wifi/networks->mobile data->apns->select your apn and edit it
Scroll to the very bottom setting, make sure it says ONLY "mms" and NOT "default,mms".
Alternatively, you can root your phone and install droidwall and select exactly which apps can access 3g/wifi.
I think it's a bit silly and disingenuous for your carrier to sell you an MMS plan knowing you don't have a data plan (and that MMS uses data) but then don't show you or direct you on how to then set it up e.t.c..
With Droidwall, can I prevent some apps from using 3G, but able to use WiFi instead?
jpmonette said:
With Droidwall, can I prevent some apps from using 3G, but able to use WiFi instead?
Click to expand...
Click to collapse
It would be easier to try it for yourself . But yes, you can do that. I've just checked
LordLugard said:
I think it's a bit silly and disingenuous for your carrier to sell you an MMS plan knowing you don't have a data plan (and that MMS uses data) but then don't show you or direct you on how to then set it up e.t.c..
Click to expand...
Click to collapse
Usually MMS plans come /w a specific APN that is set to "MMS" only as barqers explained earlier. Ofc this is getting a bit more "delicate" on devices that almost require a data plan to function at all (and try to enable it themselves on a fresh setup).

video calls with no application

Hi everyone,
friend just showed me his sgsII and that he has video calls with no default application...straight from the dialer he can choose whether to call regularly or by video call...do you guys have this option also?cause I don't have it
another amazing thing was - he was able to do so even with wifi and data closed!!!
very weird...
Wow. I can't imagine how that works. Unfortunately, I'm on a custom ROM and can't confirm...sounds cool, but knowing how video calling works, I have my doubts. Something sounds fishy...
If I understand correctly it was done from the dialer.
If so, it did use data traffic.
itzik2sh said:
If I understand correctly it was done from the dialer.
If so, it did use data traffic.
Click to expand...
Click to collapse
Can it use data traffic even though its turned off??
Hi Alon
I'll believe it when i see the bill...
Maybe he has some bug in the ROM.
One way to know for sure is to completely remove his Access Point (Data Connection)
(Settings --> Wireless and Networks --> Mobile Networks --> Access Point Names --> Choose APN [write all details down and find out password] --> Press hardware settings button --> Delete APN)

How to block data?

My scenario is a little unique
I run this phone unlocked on AT&T without data. I actually have a data block on my plan, so my phone doesn't use any extraneous data from apps I can't control when I'm out of a wifi hotspot
My only problem is, I DO have unlimited texting, which also includes picture messaging. But if I block data, I can't receive picture messages.
Is there any way to block data but still be able to receive picture messages?
I'm trying to use this app:
https://play.google.com/store/apps/details?id=com.jeffdonahue.smozzy&hl=en
It is a great concept and would definitely become popular with some love.
Nice way to save data in a pinch too, or forgo the data plan all together if you don't use it much.
But I haven't been able to figure out how to have picture messaging enabled with data blocked.
Short and long answers to your question
gtmaster303 said:
My scenario is a little unique
I run this phone unlocked on AT&T without data. I actually have a data block on my plan, so my phone doesn't use any extraneous data from apps I can't control when I'm out of a wifi hotspot
Click to expand...
Click to collapse
Unique is a bit of an understatement, given that most carriers require a data plan in order to purchase a smartphone in the first place.
gtmaster303 said:
My only problem is, I DO have unlimited texting, which also includes picture messaging. But if I block data, I can't receive picture messages.
Is there any way to block data but still be able to receive picture messages?
Click to expand...
Click to collapse
Short answer, AFAIK, yes. SMS (text) and MMS (multimedia messages) work fine over the standard cellular connection. They don't require wi-fi or the carrier's data network to be active.
To elucidate: I'm on T-Mobile, and though I signed up for the mandatory 2 GB data plan, I rarely use it because I control how my phone accesses wi-fi and T-Mo's data network. In Settings|Wireless & networks, Wi-Fi is off unless I need to use it, be it my home connection or a free provider like Panera while I'm at the restaurant. Likewise Mobile network is set to off, as well as Settings|Accounts & sync|Background data and Auto-sync (separate settings). I use the Extended Controls app for a detailed widget that includes wi-fi and data network toggles for when I need to use these capabilities. My husband is hearing impaired, so we communicate a great deal using SMS and MMS; and we've not had any difficulty with wi-fi and data network switched off.
In closing, it's to your benefit to thoroughly read the manual for the MT4GS. This information and more can be found there. Here's a link for the pdf from T-Mobile (the manual is by HTC, though): http://support.t-mobile.com/servlet...2-102-2-3529/mytouch-4g-slide-user-manual.pdf
Hope the above info helps --
--
KingCheetah
KingCheetah said:
Unique is a bit of an understatement, given that most carriers require a data plan in order to purchase a smartphone in the first place.
Short answer, AFAIK, yes. SMS (text) and MMS (multimedia messages) work fine over the standard cellular connection. They don't require wi-fi or the carrier's data network to be active.
To elucidate: I'm on T-Mobile, and though I signed up for the mandatory 2 GB data plan, I rarely use it because I control how my phone accesses wi-fi and T-Mo's data network. In Settings|Wireless & networks, Wi-Fi is off unless I need to use it, be it my home connection or a free provider like Panera while I'm at the restaurant. Likewise Mobile network is set to off, as well as Settings|Accounts & sync|Background data and Auto-sync (separate settings). I use the Extended Controls app for a detailed widget that includes wi-fi and data network toggles for when I need to use these capabilities. My husband is hearing impaired, so we communicate a great deal using SMS and MMS; and we've not had any difficulty with wi-fi and data network switched off.
In closing, it's to your benefit to thoroughly read the manual for the MT4GS. This information and more can be found there. Here's a link for the pdf from T-Mobile (the manual is by HTC, though): http://support.t-mobile.com/servlet...2-102-2-3529/mytouch-4g-slide-user-manual.pdf
Hope the above info helps --
--
KingCheetah
Click to expand...
Click to collapse
You can run any phone on your carrier without data, as long as they can't recognize what it is (i.e. an unlocked phone from a different carrier)
But back to my question, AT&T tech support has told me that data needs to be enabled in order for me to receive MMS as part of my unlimited texting. On a non-smartphone, that would be no problem because there are no apps that constantly pull data in the background. If I disable mobile data on my phone, will my MMS still work? That's what I'm trying to do. Otherwise there's no way for me to avoid pay per use data charges, because my phone will keep pulling data
gtmaster303 said:
If I disable mobile data on my phone, will my MMS still work?
Click to expand...
Click to collapse
Why not try and see what happens, then let us know?
Sent from a digital distance.
I've been able to receive mms by disabling data, and deleting the "data" apn. Keep the mms apn, since if you delete that, you will not receive mms.
I have the connect to internet setting disabled, and have been able to receive MMS.
Blue6IX said:
Why not try and see what happens, then let us know?
Sent from a digital distance.
Click to expand...
Click to collapse
Lol, I did, but I just wanted to make sure I wasn't doing something wrong. It didn't work for me, that's why I asked
idlechatter said:
I've been able to receive mms by disabling data, and deleting the "data" apn. Keep the mms apn, since if you delete that, you will not receive mms.
I have the connect to internet setting disabled, and have been able to receive MMS.
Click to expand...
Click to collapse
How do I know which is which?
I have about 8 APNs
I have attached screenshots of the list
The second picture is the same list, but just includes the other half of the APNs.
If you could let me know which one to delete, that would be great
Delete all Wap.cingular apns, leave the others. You must have data pay per use at a minimum to use mms because mms messaging functions over the data network. This is the same on all carriers. It's just how mms works. On Att, the data used as part of mms messaging is included in your messaging plan and will not charge your data pay per use.
Hope this helps!
Sent from my myTouch_4G_Slide using XDA
pantheis said:
Delete all Wap.cingular apns, leave the others. You must have data pay per use at a minimum to use mms because mms messaging functions over the data network. This is the same on all carriers. It's just how mms works. On Att, the data used as part of mms messaging is included in your messaging plan and will not charge your data pay per use.
Hope this helps!
Sent from my myTouch_4G_Slide using XDA
Click to expand...
Click to collapse
Thanks for the reply.
So if I enable data on my phone now, apps won't rack up data, will they?
MMS is a part of AT&T messaging, even though it uses data, you are correct.
I just don't want the rest of my phone pulling for pay per use data

Categories

Resources