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
Regular Contributor
Posts: 94
Registered: ‎05-29-2010
My Device: 9000 bold
My Carrier: asfas
Accepted Solution

httpconnection for both wifi as well as through gprs/3G

I want to make the user to make the httpconnection whether he/she is working on wifi connection or gprs/3G networks.

Can anyone share the code for the same

 

Thanks in advance

 

Developer
Posts: 66
Registered: ‎01-14-2010
My Device: 8700
My Carrier: Airtel

Re: httpconnection for both wifi as well as through gprs/3G

I have posted the code snippet already at

 

 

http://supportforums.blackberry.com/t5/Java-Development/Differentiating-between-Direct-TCP-amp-WAP-2...

 

 

try to play with the code and use accordingly in your application.

 

 

Best Regards

Sudhakar Chavali

Developer
Posts: 374
Registered: ‎04-07-2010
My Device: Bold 9000
My Carrier: Airtel

Re: httpconnection for both wifi as well as through gprs/3G

If you are using JDE 5.0... Check them out:

 

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/io/transport/ConnectionFactory...

 

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/io/transport/TransportInfo.htm...

 

These two will help you achieve what you want...

 

 

Press the Like button (Thumb up) on the left side to thank and
please mark the Thread as solved if its solved...
K.S
Highlighted
Regular Contributor
Posts: 94
Registered: ‎05-29-2010
My Device: 9000 bold
My Carrier: asfas

Re: httpconnection for both wifi as well as through gprs/3G

Thank you very much for the solution Mr Sudhakar.

 

One more difficulty, Sice we are using WLANInfo class. The code is not working on Blackberry devices with os 4.2. If there a solution for this, kindly share