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
Posts: 551
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
My Carrier: Movistar, Telenor

Http connection

I got the programmatic installer working in the simulator. Now I want it to work on a real device and that device is not on a MDS network so its the Wifi connection or WAP connection tha will be used,

 

I have changed the code for detecting coverage but my attempts at modifying the connection statements have failed.

 

This is the original code that has to be changed:

 

//Open the connection through the BlackBerry Enterprise Server.

stream = (StreamConnection)Connector.open(url + ";deviceside=false");

 

HttpConnection httpConn = (HttpConnection)stream;

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
Developer
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

Re: Http connection

The RIM videos on networking have sample code for doing this for various connection methods. Take a look at Networking Transports II. Also take a look at the Network Diagnostic Tool.




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.