BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-02-2011, 04: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, 09: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 08: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

1PCS NEW MITSUBISHI PS21255-E POWER TRANSISTOR MODULE INSULATED SEMICONDUCTOR
$36.5
1PCS NEW MITSUBISHI PS21255-E POWER TRANSISTOR MODULE INSULATED SEMICONDUCTOR picture1PCS NEW MITSUBISHI PS21255 POWER TRANSISTOR MODULE INSULATED SEMICONDUCTOR
$37.5
1PCS NEW MITSUBISHI PS21255 POWER TRANSISTOR MODULE INSULATED SEMICONDUCTOR pictureMFE3007 Motorola Transistor Set Of 12 NOS Sealed With Box Semiconductor
$9.99
MFE3007 Motorola Transistor Set Of 12 NOS  Sealed With Box Semiconductor pictureMMBV105GLT1 ON SEMICONDUCTOR VARACTOR DIODE QTY: 2,892 30V 1.5pF
$69.95
MMBV105GLT1 ON SEMICONDUCTOR  VARACTOR DIODE QTY: 2,892 30V 1.5pF pictureT2800D Semiconductor, Motorola, 400V 8AMP RMS TRAIC 3PIN. LOT OF 14.
$12.0
T2800D Semiconductor, Motorola, 400V 8AMP RMS TRAIC 3PIN. LOT OF 14. picture






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