Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
01-27-2011 12:35 AM
I have to detect 3G or WIFI or GPRS usage
so I put conditions as
if(RadioInfo.getNetworkType() == RadioInfo.NETWORK_UMTS)
But whenever my device is using 3G, its never go in 3G block. I have tested on simulator and device(9700) as well .
I have changed 3G condions to "if((RadioInfo.getNetworkService() & RadioInfo.NETWORK_SERVICE_UMTS)>0)"
Still its not detecting 3G. Please help me regarding 3G detection !!!
01-27-2011 03:46 AM
i am using
(service & RadioInfo.NETWORK_SERVICE_UMTS) > 0
inside of a RadioStatusListeners networkServiceChanged, it works well.
RadioInfo.getNetworkServices should deliver the same flag though.
01-27-2011 04:16 AM - edited 01-27-2011 04:16 AM
Thanks for the reply.
Here you have mentioned "(service & RadioInfo.NETWORK_SERVICE_UMTS) > 0".
How can i get "service" ?
Do you mean to use "(RadioInfo.getNetworkServices() & RadioInfo.NETWORK_SERVICE_UMTS) > 0"
inside networkServiceChanged() method ?
Best Regards !!!
01-27-2011 04:25 AM
the second parameter is the service.
01-27-2011 04:58 AM