Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
fsa3
Posts: 39
Registered: ‎11-30-2008
Accepted Solution

Detecting network connection url suffix

I hate posting ANOTHER thread on network connections, but as I dive back into BB development (been off working on other stuff for 1.5 years) I still haven't found a single piece of code that encapsulates detecting and setting the URL suffixes for the various network connection types.  I'm happy to start working on something but before I did I figured I'd check in to make sure that a "gold standard" for such functionality hasn't already been found.

 

If you know of such a "helper class" please let me know, if not I'm going to start to work on something and will post code on this board for comments/improvements.

 

Thanks.

 

Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Carrier: Globe Telecom

Re: Detecting network connection url suffix

Please use plain text.
Developer
Posts: 1,474
Registered: ‎04-14-2009

Re: Detecting network connection url suffix

Have a look at net.rim.device.api.io.transport in JDE 5.0.0 (http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/io/transport/package-summary.h...). If you are targetting lower handheld software versions, then you're out of luck -- you'll still have to mess with connection URL parameters

Please use plain text.
Developer
fsa3
Posts: 39
Registered: ‎11-30-2008

Re: Detecting network connection url suffix

kyubin - yes that is what I was intending to build, but for older JDE versions.  Are there really alot of people out there with 5.0 phones?  I know I only have 4.5.

 

 

Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Carrier: Globe Telecom

Re: Detecting network connection url suffix

[ Edited ]

there's no official release of 5.0 yet. :smileyhappy: it is still under testing. and JDE 5.0 is still in BETA release. if you're not in a hurry then you can wait for it then. :smileywink:

 

if you're going to support devices below 5.0 then you'll have to implement your own Transport layer. :smileyhappy:   

Message Edited by johnbibs on 09-07-2009 01:49 AM
Please use plain text.
Developer
fsa3
Posts: 39
Registered: ‎11-30-2008

Re: Detecting network connection url suffix

Just curious,

 

Is there any recent data on the breakdown of the OS versions used currently?  Also from a transport layer standpoint what are the most common ones to support?

 

 

Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Carrier: Globe Telecom

Re: Detecting network connection url suffix

regarding the breakdown of the OS version currently use in the market, i don't have figures for that. google it. :smileyhappy:

 

regarding the transport layer,  well, you can support the following: wifi,bes, bis(for alliance member only), wap2.0/1.0 and direct tcp.

 

to understand the network transport better, watch the network transport protocol video in developer video archive. :smileyhappy: 

Please use plain text.
New Developer
marwatk
Posts: 11
Registered: ‎11-13-2008

Re: Detecting network connection url suffix

For what PodTrapper's update check is seeing, OS and Device-wise, see this page:

http://www.versatilemonkey.com/story.html#platform

 

(That's from June, but pretty close).

 

For the networking stuff, I put together a wrapper here if you want to use it:

http://www.versatilemonkey.com/blog/index.php/2009/06/24/networking-helper-class/

 

Hope it helps!

 

-Marcus

VersatileMonkey.com

Please use plain text.
New Contributor
Inteist
Posts: 8
Registered: ‎03-28-2010
My Carrier: T-Mobile

Re: Detecting network connection url suffix

This code very unfortunately does not work for many many people... I am talking from experience. I tried to use this code and it proved to be actually worse than the one I was using before :smileysad:  (in the sense that it did not work for more people). But, the good thing is that it usually covered the users that had problem with my original code. So I am trying to combine those two together now.

Please use plain text.
Developer
johnbibs
Posts: 905
Registered: ‎02-07-2009
My Carrier: Globe Telecom

Re: Detecting network connection url suffix

[ Edited ]

deleting message. sorry this is a solved thread already. :smileyhappy:

Please use plain text.