03-25-2011 01:51 AM
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";
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!!
03-27-2011 02:26 AM
Try using the flag with bitwise anding
Mark kudos if this helps