BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-04-2006, 08:31 PM   #1
mouli
Knows Where the Search Button Is
 
Join Date: Dec 2005
Model: 8300
Carrier: T-Mobile
Posts: 15
Default internet connection

Please Login to Remove!

When connected to PC via USB, will I be able to use the PC's internet connection to browse the net in the device?
Offline  
Old 01-05-2006, 11:35 AM   #2
eeksock
Knows Where the Search Button Is
 
Join Date: Sep 2005
Model: 8110
Carrier: Rogers
Posts: 15
Default

Yes -- BlackBerry's transport implements least cost routing, so that when USB-cradled it will direct all socket and HTTP connections through the desktop automatically (and transparently to your program), and when disconnected it will instead go through the wireless network. In JDK 4.1, RIM added an API call so that you can detect this as well.


eeksock
Offline  
Old 01-06-2006, 06:24 PM   #3
mouli
Knows Where the Search Button Is
 
Join Date: Dec 2005
Model: 8300
Carrier: T-Mobile
Posts: 15
Default

Thanks for your reply,

One more (confirmation)question , please bear with me....

so, in that case, if I write a java application that uses Httpconnection, it is going to use my PC's internet connection when connected via USB?

Thanks

Mouli.
Offline  
Old 01-07-2006, 06:14 AM   #4
eeksock
Knows Where the Search Button Is
 
Join Date: Sep 2005
Model: 8110
Carrier: Rogers
Posts: 15
Default

Yes, that should work fine.


eeksock
Offline  
Old 01-09-2006, 05:36 PM   #5
mouli
Knows Where the Search Button Is
 
Join Date: Dec 2005
Model: 8300
Carrier: T-Mobile
Posts: 15
Default

Could you tell me which api does this? I tried searching, but could not find it.

Regards
Offline  
Old 01-10-2006, 08:16 AM   #6
eeksock
Knows Where the Search Button Is
 
Join Date: Sep 2005
Model: 8110
Carrier: Rogers
Posts: 15
Default

Mouli:

For documentation, try downloading the 4.1 CHM file I have on my website, www.jou.ca. From there, check out the SystemListener2 class, and in particular the USB_STATE_CABLE_* constants.


eeksock
Offline  
Old 01-10-2006, 10:43 AM   #7
mouli
Knows Where the Search Button Is
 
Join Date: Dec 2005
Model: 8300
Carrier: T-Mobile
Posts: 15
Default

HI,

thanks,

I looked at the SystemListener2 interface and its constants. It mainly talks about the USB connection states. But how will I know when my application tries to connect to the internet it uses my PC's network connection? This class does not seem to talk about this aspect of it, or am I not looking carefully?

Thanks

Mouli.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

HP 819849-L21 Intel Xeon E5-2650L v4 Tetradeca-core (14 Core) 1.70 GHz Processor
$530.0
HP 819849-L21 Intel Xeon E5-2650L v4 Tetradeca-core (14 Core) 1.70 GHz Processor pictureNew HP DL360 DL360p G8 Xeon CPU Kit, Heatsink 654757-001 & 2 Fans 654752-001
$46.85
New HP DL360 DL360p G8 Xeon CPU Kit, Heatsink 654757-001 & 2 Fans 654752-001 pictureSUPERMICRO - COMPONENTS SSG-6049P-E1CR24H 4U RM BB BLACK LGA3647 2666MHZ
$3556.63
SUPERMICRO - COMPONENTS SSG-6049P-E1CR24H 4U RM BB BLACK LGA3647 2666MHZ picture DELL 3GTGH POWEREDGE R10 SYSTEM BOARD DUAL XEON LGA1366
$99.95
 DELL 3GTGH POWEREDGE R10 SYSTEM BOARD DUAL XEON LGA1366  pictureUsed Supermicro SUPER P4DC6+  SCSI RAID w/ dual Xeon processors and 1GB Ram
$400.0
Used   Supermicro SUPER P4DC6+  SCSI RAID w/ dual Xeon processors and 1GB Ram picture






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