Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
clowicek
Posts: 14
Registered: ‎11-22-2008
My Device: 9360
My Carrier: T-Mobile CZ

isDataServiceSuspended()

Hi all,
i have question about RadioInfo.isDataServiceSuspended()... i want testing that mobil internet is turn off or not...
but if my mobile data running so RadioInfo.isDataServiceSuspended() show me that my mobile internet is off.

 

 

this is code that i use my application.

 

public static boolean hasSignal() 
{
  if (RadioInfo.isDataServiceSuspended()) 
  {
    return false;
  } 
  else 
  {
    return true;
  }
}

 

 

Sorry for my english

 

Regards,

 

Stepan

Please use plain text.