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
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?

Old 02-02-2011, 09:26 AM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
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;
return false;
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

APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD
APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD   picture

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