BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-20-2009, 02:23 AM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Model: 7100T
PIN: N/A
Carrier: Airtel
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How do I create a generic application to connect to internet irrespective of BIS/BES?

Please Login to Remove!

Thanks in advance,

I have created a TCP-IP based app which is working fine on Simulator but when I put this app on the actual device even after putting the APN settings (APN:internet, UserName:BLANK, Pwd:BLANK) it is giving me tunnel failed exception. I'm using Idea Cellular(India) Blackberry plan BIS/BES. I tried with all sorts of gimmik but of no help viz. APN, deviceside=true/false etc

My actual question is how do I create a app like Google Maps or facebook, which connects to internet irrespective of the connection type. These applications don't need any APN settings and still they are able to make the connection. Is there any different set of api's not exposed by blackberry for 3rd party development which connects without specifying any settings?

How do I programatically retrieve at run-time what sort of protocol I should use to connect and how do I retrieve the respective settings?

Rgds,
aks
Offline  
Old 07-20-2009, 07:53 AM   #2 (permalink)
BlackBerry Master
 
dankarlinski's Avatar
 
Join Date: May 2007
Model: 1
Carrier: 1
Posts: 3,391
Post Thanks: 1
Thanked 2 Times in 2 Posts
Default

Wirelessly posted (White and Nerdy)

Those apps are run thru the blackberry servers, NOT the TCP. To do that, you will need the developer keys from RIM, and need to have them allow the app onto their servers. And they would have to set the internet options on it
Offline  
Old 07-20-2009, 08:36 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

This RIM Video discusses the various network connection methods and gives example code.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 07-20-2009, 09:16 AM   #4 (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

Use CoverageInfo to detect the type of connection that is available.

The APN info can be specified in the URL for Direct TCP connections; the WAP gateway info can be specified in the URL for WAP connections.

You might also look at WAP2 (although it is not supported on all carriers). With WAP2, you can retrieve the parameters from the servicebook.

See this article:

Livelink - Redirection
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





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