API to attach / detach from GPRS network only - General Topics

Hi,
I am currently working in a project in Spain to implement an application for SFA (Sales Force Automation) to capture orders at Point of Sale . We are evaluating using XDA II (PPC 2003 phone edition) as a device where to run the application.
As this application (.NET) will sync data over GPRS, we need to have GPRS activated. But at the same time, we would like to save power deactivating GPRS from the application, when the user don't need to sync data with the server.
Here is the question :
- Is it possible to activate / deactivate GPRS from an application without deactivating the whole radio interface ? (i.e. we want the user be able to to make phone calls at any time (even when GPRS is off)).
- If so, what is the API that enables to do it ? (we don't want the user changing this from device settings).
Thanks in advance,
Rgs,
Jose Martrat
Valoris
T:+34 670331056

In order to deactivate your gprs connection, you hold the red button for 3 seconds (hang up button).
You have also some tools that have a connect/disconnect button sucg as GPRS monitor.

I appreciate your quick repply, but I am not looking for a mechanism to close a GPRS session.
I need a way to disable the process that is permanently looking for the GPRS network,even when you don't have a GPRS session inititated (i.e. disable the radio interface for GPRS only), in order to reduce power consumption.
I need this from an API, not from a user intervention, so we can program this functionality on our application.
Hopes this clarifies my question.
Rgs,

probably this guy who has come out with this Tweak can help.
http://www.gb-soft.cz/XDAII/product_gprs_tweak_en.htm
This tweak allow to to start Radio by not having GPRS attached. Is that what you're looking for?

Related

Auto disconnect of GPRS after email check

Hello,
I just found and test on my vox, the way to autodisconnect from GPRS after the mail check. I was very unhappy with this feature because my battery was drained much faster then now.
The way to autodisconnect is:
Edit registry with a registry editor:
go to HKLM\Comm\ConnMgr\Planner\Settings\
Create a new DWORD value: CacheTime with decimal value of 60
This is the amount of time in seconds your smartphone will wait before ending the packet data connection.
Under SuspendResume, remove the string "~GPRS!" and replace it with "GPRS_bye_if_device_off"
This change tells the device to obey the time set in CacheTime and sever connection, vice the default setting of leaving the connection all the time.
I tested that settings on HTC S710 and Samsung i600 and it worked.
thanks for the great tip
Thanks a lot for the tip. Has been looking for it for a long time. Because my previous handset (Nokia E50) used to automatically disconnect after checking mails. Looks like Microsoft gets a cut money from operationrs for GPRS usage
hi,
this method will only cut gprs connection after mail sync or all connections ?
60 second after the end of sync or after the start of it ?
a lot of question ;-)
fbp2k said:
hi,
this method will only cut gprs connection after mail sync or all connections ?
60 second after the end of sync or after the start of it ?
a lot of question ;-)
Click to expand...
Click to collapse
this setting will close all GPRS connections immediately after they are not used.
Don't work! (Samsung Omnia i900)
Also when you might have been busy browsing the internet or using a chat application for instance Mxit, and someone calls you the GPRS Connection gets dropped but it does not continue after the call has ended.
I did some testing on my own and made a thread about it, but still haven't got an answer to my question except for not changing the registry and leaving it on default, the session will continue after the call has ended and using the Com Manager to end the connection manually when you are done.
Here is my link: http://forum.xda-developers.com/showthread.php?t=412789&highlight=GPRS
Hope it helps answer some questions...

WM6 - different GPRS connections - auto changing

Hi - I have an XDA Wizard. It has Onebridge software installed that letys me check my work email, but to do this it needs to use a specific GPRS connection. Everything else on the phone (i.e general web access) needs a different GPRS connection. Other than manually changing from one to the other, is there any way I can automatically change conenction being used dependant upon what I am trying to do?
Cheers,
Ben

allow GPRS connection in roaming mode, by registry?

Hello together,
A colleague phoned me some minutes ago that he has some trouble with his Windows Mobile phone: he cannot run an application that requires GPRS data connection because he is currently using roaming mode (other country). He thinks there might be a dialog box where he needs to confirm that he wants to allow GPRS connection because it costs more money due to roaming mode, and that there should be a registry entry where he can disable that dialog box so that GPRS connection is established without manual confirmation. That's why I'm now looking for such a registry entry.
Does anyone know what registry entry this could be?
Thanks for any help.

Shortcut to launch a mobile data connection

Hi,
Is there a way with shortcut, scrip or program to launch one of my 3G/GPRS profil connection. I've 3 profil in network management tools, Orange enterprise, Orange World and Orange Internet.
Orange Interne is free to use, without proxy or restriction. I'm using it with Fring and Gmail. Orange Enterprise is for exchange mail, calendar and task synchronisation. Fring, Gmail and url navigation are disable.
I'd like to create a shortcut to launch one or other profil connection rather than go to network management and change the defaut profil...
Could you please help me to create a script or shortcut to do this.
Thanking you in advance
Nobody knows?
You can do it through Mortscript.
ENABLE connections works for sure..
DISABLE depends on your device ....
Thanks for your Help.
I've a SGH-I780. Disable the connection is not a problem, I can do it via icons on top of the screen.
Is it hard to use mort script to make the 2 shortcut? Have you a small example of script?
Thank you
Hi,
i've made a small script with mortscript and it works well. I can enable Orange Internet or Orange Entreprises connexion.
But... I've also a new problem because, in fact, my connecton is automaticaly disabled when I launch Pocket Internet Explorer and the defaut profil in Network Configuration Profil is launched.
I think I have to modify my registry to make the connection I want to defaut just before enable the connection I want in my script.
Do you know the right key I have to write and the correct key???
Please help
you can also bring up Data Connection in Comm manager using Schaps' Advanced Config

How To Guide [GUIDE] Device Settings Menu Guide, Tips & Discussions | Part I - Connections

Device Settings Guide, Tips & Discussions
Part 1 - Connections
If you're new to this series or want to see the index, please read Post #2 first.
​
Wi-Fi
Click on Gear icon besides any network:
View supported Network speed and security
Auto reconnect: If on, automatically connects to this network when Wi-Fi is ON. Switch it off for backup Wi-Fi i.e. you can keep it ON for 5 GHz network and OFF for 2.4 GHz so that it always connects to 5 GHz automatically.
Manage Router: Opens up the router admin page by going to your Gateway IP Address.
IP Settings: Choose from DHCP or Static. If you want to use custom DNS, you have to use Static IP. If you want to know the Network info like IP, Gateway or Subnet Mask, choose Static once and note the displayed info.
Proxy: Set manual or auto-config proxy here.
Click advanced to show:
View device's MAC address and allocated IPv6/IPv4. Learn about MAC and IPs here.
Metered Network: If you set a connection as metered, you or device can restrict background processes, big downloads and save data.
Randomized MAC: Devices are supposed to have a permanent MAC but this could be used to track you. From Android 10, you get an option to use randomized MAC each time your device connects to Wi-Fi. You can disable this if you use MAC Filtering on your router.
QR Scan (icon on top-right): Connect to Wi-Fi without entering password. Use a device that is already connected to the network and scan the QR code displayed by the former.
Menu > Wi-Fi Direct: Turn on Wi-Fi Direct on a nearby device as well to transfer files wirelessly and fastly. Works best with Samsung Devices and it does NOT require connection to a Wi-Fi network. You get speeds maxed out at the supported wireless speed of your devices! It is a better and more secure alternative than ShareIT or JioSwitch.
Menu > Advanced:
Sync with Samsung Cloud: Backup your Wi-Fi usernames and passwords and use the same on synced devices.
Switch to mobile data: If your Wi-Fi network quality drops, use mobile internet directly even if Wi-Fi is still connected (needs Mobile Data to be ON). You can add (Wi-Fi) Network Exceptions to prevent switching. Get notified to Allow individual apps to switch to mobile data i.e. if WhatsApp is blocked on your college Wi-Fi, you can allow WhatsApp to use Mobile data while keep using the Wi-Fi!
Turn on Wi-Fi Automatically: Your device will automatically enable Wi-Fi where you use it frequently. For example, you or your device can turn off your Wi-Fi when you go out and you won't need to enable it again when you get back home (you can configure the frequent networks after they appear here). Tasker used to handle this job for me (try IFTTT for simpler setup) but now the OEM solution is more optimized.
Wi-Fi power saving mode: For example, if you get WhatsApp messages every 30 minutes on average, the device learns about this traffic pattern and can toggle Wi-Fi accordingly to fetch notifications every 30 minutes. I keep this disabled as my usage pattern is dynamic like most of you. Better use App Sleep or Hibernation Apps like Greenify to save battery. Learn more about this mode here.
Wi-Fi control history: View apps that have toggled Wi-Fi recently. You can figure out if there's any culprit app that is toggling your Wi-Fi frequently when you have explicitly turned it off/on.
Hotspot 2.0: Automatically connects to APs that support Hotspot 2.0 or 802.11u. Network providers are themselves upgrading existing Wi-Fi in public areas like airports and encryption is a must for Hotspot 2.0 so you can trust and rely on it while you don't have to manually guess the right network. Learn more about Hotspot 2.0 here.
WPS push button; WPS PIN Entry: (Pie doesn't support WPS but Google says it's coming back, Read here) Connect the device to WiFi by pushing WPS button on the router or entering WPS PIN in case these are enabled on the router. Learn about WPS here.
Install network certificates: Normally not needed. Some organizations would need you to install certificates to access their domains. Same as what you do on a PC to install certificates.
Wi-Fi Calling
(Formerly VoLTE calling) Uses Wi-Fi to transmit voice instead of the mobile network but they still appear to be done via your SIM or number. This saves your mobile plan and also beneficial when you have low mobile network inside your home but good Wi-Fi! You'll see the SIMs in case the carrier supports VoLTE calling. #JioWaale
Bluetooth
When the Bluetooth is ON, you can STOP/SCAN for nearby devices manually. Keep BT on for playing with the following settings.
Menu > Advanced:
Sync with Samsung Cloud: Note that this only sync Samsung devices like Galaxy Home Speakers and Galaxy Buds.
Music Share: Enables your friends (or else) to connect with a speaker connected to your phone without requiring you to unpair and them to pair with the speaker. Useful in cases like you want your car to be always connected to your device. However, on a trip, your friend wants to play music from his phone while you drive. Get more explanation here.
Ringtone sync: Sync the ringtone you set on your phone to the connected speaker. I did not know they played different tones!
Bluetooth control history: Similar to 'WiFi control history' above.
Block pairing requests: Block spammers to request pairing.
Bluetooth scan history: Shows apps that scanned for BT devices. Review this once in a while as Apps can scan even when the BT is off!
[Discontinued] Dual Audio: Enables your device to connect to 2 different audio devices and play the same audio on both of them. Samsung explains this here.
[Discontinued] Media volume sync: In case the connected audio device supports this, you can change the player's volume by your device's volume rockers by enabling this i.e. you don't have to manually raise the volume to the fullest on both your device and the connected player to get the highest volume possible for your house party.
[Discontinued] Phone visibility: (Moved to Separate section after Bluetooth in Pie, please tell if it works for BT as well) Allow devices (with Samsung Connect) to find your device for connection. You can disable it unless you live in a Smart Home or transfer files from other devices more often. Learn more about this mode here.
NFC and contactless payments
It's turned ON by default on a new phone so do turn it OFF first. Samsung Pay will turn that ON if needed. Samsung Pay uses only NFC now starting from S21. MST is discontinued though no other brand could use this for payments. In case you don't know about MST (patented by LoopPay), must-read here. More information on the discontinuation in the FAQ.
[Discontinued] Android Beam: Allows you to share stuff when you tap your phone with some other-phone-with-already-enabled-NFC.
Contactless payments (Formerly Tap and pay): Select the default app for Payments and Others. Your default app will open up when you, for instance, tap your phone on an NFC-enabled POS (of course you need NFC to remain ON beforehand).
Pay with currently open app: By enabling, if currently opened app supports payment, it will used instead of the default app above. I have kept it enabled because I don't want Samsung Pay to open up when I know I am going to use GPay!
[Discontinued] Default NFC Method: By default and normally needed, 'Auto select'. In case you are the curious breed, learn about the different options here.
Flight Mode
Disables your operator's network. Since enabling this will also disable Wi-Fi and Bluetooth altogether, you can turn back these two on without toggling flight mode.
Mobile networks
Data roaming: Enable it if your carrier doesn't charge you for roaming or you're rich enough.
Network mode: By default, 'auto connect'. You can play with the options in case you're facing network mode changing issues or want to save battery (put to 2G only). If your region does not have 5G yet, you can go back to 4G/LTE to save battery!
Access Point Names: I recommend you to request or configure your operator's settings for the first time even if it had been automatically fetched. Nerdy guide here.
Network operators: Suggest usage?
Data usage
Data saver: Formerly known as 'Restrict background data'. Your background apps will stop using network data i.e. you'll receive WhatsApp notifications only when you open the app again. You can also whitelist apps in 'Allowed to use data while Data saver on'. This feature can help a lot in saving battery or making you check the phone less when you're hanging out with your girl. Me no girl so no enable!
Mobile data usage; Billing cycle and data warning: Do check this in a while to review the apps that use most of your mobile data (maybe you don't need those apps that much on mobile data); Change your operator billing cycle, set data warning and enable data limit in case your operator doesn't give you free GBs. The app options you change here will be reflected in the Data saver section above.
Mobile data only apps: You can choose apps that you only want to use mobile data. Useful in case your organization's Wi-Fi blocks some apps like WhatsApp. This is related to 'Allow individual apps to switch' in the Wi-Fi section.
Wi-Fi data usage; Restrict networks: Like mobile data, you can also review your Wi-Fi usage! Do review it once in a while to identify data-hungry apps that can affect battery and CPU as well. The apps you disable here for background usage will be blocked while Mobile Data is on OR the Wi-Fi is metered. Please confirm?
SIM card manager
Select Icon, Name and Network mode (described above) for the corresponding 'SIM slot' (not the SIM). Select preferred slot for calls, messaging and data. Learn about Smart Dual SIM here.
Mobile Hotspot and Tethering
Mobile Hotspot > Advanced:
Wi-Fi sharing: In addition to mobile data, you can also share your Wi-Fi. This can be helpful in case you don't want to reveal your network or its credentials or don't know about them. Also, your device can become a repeater for devices that are too far away from the Wi-Fi (keep your phone on charging).
Security: Use 'WPA2/WPA3-Personal' (Learn about wireless encryption here).
Timeout: Keep timeout low so that hotspot turns itself OFF earlier in case there's no client or change to 'Never Timeout' if you are going to need it for some time.
Hidden network: Enable 'Hide my device' to stop exposing your SSID.
Power saving mode: Similar to PMS in Wi-Fi Advanced. Keep Protected Management Frames (PMF) on by default and change in case the client doesn't support.
[Discontinued] Menu > Allowed Devices: Enter MAC addresses of clients you want only to connect to your hotspot. Same as MAC filtering in routers.
Mobile Hotspot > Auto Hotspot: You might get this ON by default. Turn it off! This enables your or family devices to share your internet connection via Hotspot. You know when you need it!
Bluetooth tethering; USB tethering; Ethernet tethering: Learn about BT/USB tethering here.
More connection settings
Advanced Calling & Messaging: Some iMessage kinda thing? Anyone?
Nearby device scanning: Although it uses Bluetooth Low Energy, I have it disabled. If you enable it, you get notifications for nearby devices like TVs that support connections through your device (will annoy you at airports).
Printing: Do download Google Cloud Print and any other printing plugin required by your or your organization's printer.
[Discontinued] MirrorLink: Learn more here.
[Discontinued] Download Booster: Uses both WiFi and LTE at the same time to download apps over 30MB from Play Store and Galaxy Apps. In case you want that app as soon as possible.
VPN: Configure your VPNs here in case you have. I use Psiphon. You can also manually configure profiles as you do on PC.
Ethernet: Yes, you can use a wired connection on your device too. Discussions here.
Private DNS: Supports DNS over HTTP/TCP and I recommend reading about this here. I use 1dot1dot1dot1.cloudflare-dns.com.
Series - Full Menu Guide Explained
Series - Device Settings Menu Guide​
Hey XDA! I just got free from the initial setup of my Galaxy S22 Ultra. I don't know how many of you do this but I'm one of a kind that gives a considerable amount of time to explore every setting, feature and every single option whenever I get a new device or even when I factory reset the existing one. It's been years since I have started with this curiosity and I have never found an 'all-in-one' menu guide to explain each and every option in the device. Yes, you could also simply google the option you want to know about but how about compiling all of them in one guide? I don't know if this experiment would work or not but here's I am starting with this. I have spent the past three weeks taking out time whenever I could to compile this guide.
There are a couple of reasons I had decided upon to start with this series. Firstly, I want to help newbies (or even experienced) out there to explore and know about every feature or option your device could offer. I have seen many duplicate threads that are created every day to query fellow users even about an individual but unfamiliar option in the settings. I intend to do my bit to clear this clutter and help potential askers to get answers beforehand. Secondly, this guide could serve as a manual in case you want to find or get briefed about an option. You could then simply 'Find in a page' over the threads or simply use XDA's 'search in the thread' option to save your time. Thirdly, since I've broken the settings into different threads, this could help users engage and discuss over a particular device's super-menu and spread their knowledge, come up with new ideas and explore more of their devices. Fourthly, this series is not constrained to Note9 only. The settings on every Android device out there is similar and you would be able to find any common to your device settings here as well. Fifthly, since I have provided links and sources to some options, this can serve as directory map as well. Sixthly, this guide consists of tips for many options that you won't probably find normally.
This guide is intended and recommended to be read by anyone at least once. If you're reading a thread for the first, I recommend you to open up the corresponding settings in your phone and read the settings description in case there is. All the threads are arranged in the same order as the settings would come up. You could then simply read out my description of the same, my selected configuration and hyperlinks to some articles or videos in case you're the curious breed. This guide is strongly recommended after a fresh start. I want you all to give some time to explore each and every option your device can offer.
Hope this experiment lives up to the marks. Both criticism and appreciation are greatly needed and appreciated. Please comment.
I've tried to explain each option you could find by going deep into any setting. No matter whatever links I have provided, I will feel grateful if you want me to explain any feature more than I have done already. Please ask questions related to any settings. Do provide me suggestions and your take on my configuration. Please provide me with more guides and articles for a particular feature. I want to have the precious contribution of XDA members in this guide. Discussion over any feature, setting, your configuration, did-you-knows and anything else is greatly appreciated. This is a newbie-friendly place so don't hesitate to ask questions - besides the fellow XDA members, I'm always here for you.
Regards,
Paras Lehana
Index
Part 1 - Connections
Part 2 - Sounds and vibration, Notifications, Wallpaper and themes
Part 3 - Display, Lock screen, Biometrics and security
Part 4 - Advanced features, Device maintenance, Apps
Part 5 - Cloud and accounts, Google, Accessibility, General management, Software update, User manual, About phone, Developer options​
FAQs
Why did Samsung discontinue MST for Samsung Pay? (Contributed by @sansart)
Ans: With big card companies like Mastercard ditching Magnetic Stripes due to security concerns, Samsung could be taking a step in this direction. Starting with Galaxy S21, Samsung discontinued MST and, in a statement, it added: "Due to the rapid adoption of near field communication (NFC) technology by consumers and businesses, beginning with devices launched in 2021, Samsung Pay will focus its support on NFC transactions, across the Galaxy portfolio. While future devices will no longer include magnetic stripe technology (MST), customers with previous, compatible Galaxy devices will be able to continue using Samsung Pay, including MST." (Source: The Verge)
Mastercard nicely explains about ditching Magnetic Stripes here: Swiping left on magnetic stripes
Good read, thanks! I think your NFC section needs updating though, Samsung no longer uses MST.
Updated. FAQ too. Thank you for contributing!
Since S22U is my upgrade after spending over 3 years with Note 9, I was doubting about the MST thing after the payment failed once. Now I have read about it. Thanks again!
sansart said:
Good read, thanks! I think your NFC section needs updating though, Samsung no longer uses MST.
Click to expand...
Click to collapse

Categories

Resources