BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-25-2011, 12: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, 07: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, 09: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 04:12 AM
BB Manager Application Status OTA Software push jensel79 BES Admin Corner 3 09-13-2007 10:16 AM
Force Roaming? ericshmerick General Legacy Device Discussion 2 04-10-2007 10:13 AM
Account admins/heavy roaming users: how to evade roaming charges? headtailgrep General BlackBerry Discussion 1 06-06-2006 03:20 PM

NANYA 2GB(2x1GB)2RX8 PC2-5300s 555-12-F1 667 Laptop Memory RAM NT1GT64U8HB0BN-3C
$7.99
NANYA 2GB(2x1GB)2RX8 PC2-5300s 555-12-F1 667 Laptop Memory RAM NT1GT64U8HB0BN-3C picturef) Cute Memory Cartoon Notepad Memo Diary Notebook Book Best Gift Note Pads 1PC
$0.5
f) Cute Memory Cartoon Notepad Memo Diary Notebook Book Best Gift Note Pads 1PC pictureUniRom UR08 8M 90 Advanced Memory Emulator 8 Mbit
$234.99
UniRom UR08 8M 90 Advanced Memory Emulator 8 Mbit  picture10PCS SPI SD TF CARD MEMORY SHIELD MODULE STORAGE BOARD MICRO SD FOR ARDUINO H9
$10.34
10PCS SPI SD TF CARD MEMORY SHIELD MODULE STORAGE BOARD MICRO SD FOR ARDUINO H9 pictureHynix 4 GB KIT - 2x2 GB SO-DIMM 1333 MHz DDR3 Memory HMT325S6CFR8C-H9
$14.99
Hynix 4 GB KIT - 2x2 GB SO-DIMM 1333 MHz DDR3 Memory HMT325S6CFR8C-H9   picture






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