View Single Post
Old 10-24-2007, 08:48 PM   #3 (permalink)
Thomas Shek
New Member
 
Join Date: Sep 2007
Model: 8100
PIN: N/A
Carrier: 12345
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you RemyJ, CoverageInfo works in this case, my updated code is
Code:
        return ((RadioInfo.getState()==RadioInfo.STATE_ON) &&
                (RadioInfo.getNetworkType() == RadioInfo.NETWORK_GPRS) &&
                ((RadioInfo.getNetworkService() & RadioInfo.NETWORK_SERVICE_DATA) != 0) &&
                ((RadioInfo.getNetworkService() & RadioInfo.NETWORK_SERVICE_EMERGENCY_ONLY) == 0) &&
                (RadioInfo.getSignalLevel()!=RadioInfo.LEVEL_NO_COVERAGE) &&
                (RadioInfo.isDataServiceOperational()) &&
                (!RadioInfo.isDataServiceSuspended()) &&
                (!CoverageInfo.isOutOfCoverage())
               );
Offline   Reply With Quote