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

New Contributor
Posts: 5
Registered: ‎07-02-2011
My Device: Curve 9300
My Carrier: Anything

How to check data plan availability? (Like app world does)

Hey guys,


In my application, I don't want it to connect when user has no data plan. I know it is possible, as it is used in App World & Twitter application. I've looked all over the place. I found CoverageInfo and RadioInfo. But it doesn't seem to work.


Here is the code I used:

hasCoverage() {
  return (CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_MDS) || CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_BIS_B));


When I test the code, it returns true on a blacberry that doesn't have data plan. I expect it to return false, indicating no data plan.


Can anybody shed the light please? Smiley Happy

Posts: 40
Registered: ‎09-08-2011
My Device: 8900
My Carrier: AIS

Re: How to check data plan availability? (Like app world does)

Probably in "Service Books".