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

Fi-Shock 10 Mile Solar Powered Low Impedance Energizer ESP10M-FS
$278.17
Fi-Shock 10 Mile Solar Powered Low Impedance Energizer ESP10M-FS pictureElectroBraid EAC75M-EB AC Low Impedance Energizer, 75-Mile
$208.37
ElectroBraid EAC75M-EB AC Low Impedance Energizer, 75-Mile pictureZareba ESP30M-Z Solar-Powered Low-Impedance 30-Mile-Range Charger
$436.03
Zareba ESP30M-Z Solar-Powered Low-Impedance 30-Mile-Range Charger pictureTOA ZM-104 Impedance Meter with case and leads
$239.99
TOA ZM-104 Impedance Meter with case and leads pictureResister Wire Wound Multiple Impedance Taps 2800, 2250, 3650, 4000 Ohms Unk Man.
$6.0
Resister Wire Wound Multiple Impedance Taps 2800, 2250, 3650, 4000 Ohms Unk Man. picture






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