BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-25-2011, 01:58 AM   #1 (permalink)
New Member
 
Join Date: Mar 2011
Model: 8520
PIN: N/A
Carrier: Airtel
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Roaming status not shown properly

Please Login to Remove!

Hi,

I am using RadioInfo API to find the roaming status of the device.

The code snippet,

String roamingStatus = "";
if(RadioInfo.getNetworkService() == RadioInfo.NETWORK_SERVICE_ROAMING)
roamingStatus = "Roaming";
else
roamingStatus = "Home Netwok";


But, I am getting the roamingstatus as Home Network when the device is in roaming.

Did I mistake anything in my code?

How could I find the roaming status?

Please help me!!


Thanks,
SmartPhoneMate
Offline  
Old 03-25-2011, 08:26 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: Roaming status not shown properly

RadioInfo.getNetworkService() returns a "Combination of the NETWORK_SERVICE_* flags" so you probably want to do something like:

Code:
if (RadioInfo.NETWORK_SERVICE_ROAMING == (RadioInfo.getNetworkService() & RadioInfo.NETWORK_SERVICE_ROAMING)) {
...
}
__________________
My other Blackberry is a PlayBook.
Offline  
Old 03-25-2011, 10:41 AM   #3 (permalink)
New Member
 
Join Date: Mar 2011
Model: 8520
PIN: N/A
Carrier: Airtel
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Roaming status not shown properly

Thank you

I will try this.

Thanks
SmartPhoneMate
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Roaming status not shown properly
Thread Thread Starter Forum Replies Last Post
Project type Library is not shown hibbert Developer Forum 4 02-04-2009 08:06 AM
BB Messenger status wibbly General BlackBerry Discussion 0 09-25-2007 05:12 AM
BB Manager Application Status OTA Software push jensel79 BES Admin Corner 3 09-13-2007 11:16 AM
Force Roaming? ericshmerick General Legacy Device Discussion 2 04-10-2007 11:13 AM
Account admins/heavy roaming users: how to evade roaming charges? headtailgrep General BlackBerry Discussion 1 06-06-2006 04:20 PM





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.