BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-02-2011, 03:03 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default know if terminal has connection

Please Login to Remove!

Hi, I want to know if terminal has internet connectio, because if not I save all data in SQLlite. How can I test this? And How can I simulate not connection in my simulator?

Thanks,
Offline  
Old 02-02-2011, 08:26 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: know if terminal has connection

Look at the menu on the simulator window, "File Edit View Tools Simulate"...etc.

Select "Simulate", the "Network Properties". You have several options to muck with the coverage there.

To check the signal, you can do something like this:

public synchronized boolean isWirelessActive()
{
if (net.rim.device.api.system.RadioInfo.getState() == net.rim.device.api.system.RadioInfo.STATE_ON &&
net.rim.device.api.system.RadioInfo.getSignalLevel () != net.rim.device.api.system.RadioInfo.LEVEL_NO_COVER AGE)
return true;
else
return false;
}
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: know if terminal has connection
Thread Thread Starter Forum Replies Last Post
Use your Pearl as a BT Modem under OS X ggoodale Mac Users Corner 250 04-27-2011 09:11 PM
Application hangs on http connection on emulator bindiamariam Developer Forum 3 01-09-2009 07:17 AM
Errors observed on the BES pankajppawar BES Admin Corner 1 09-27-2007 07:35 AM
Desktop Manager sync issues w/ Bluetooth connection - Blackberry 8800 - AT&T bergstpg Bluetooth Connection 1 08-16-2007 08:48 AM
BES server that was configured at another site seems to require that site to work mannyp BES Admin Corner 7 07-05-2007 08:48 PM





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