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
New Developer
Posts: 119
Registered: ‎10-23-2009
My Device: Not Specified

Connect to internet

I have a problem. My program is coded for 8120 and 8820. Now after finished code, i build to device. But 8120 work very well while 8820 is not. It thrown an exception that is catched by my program "Error contact to server". Afte debug i recognized maybe this exception is from connecting to internet . I tried to debug on Simulator too, it works. But on device when i get StreamConnection, it alway return null. I set for connection is Wifi = true.

Somebody help?

Highlighted
Developer
Posts: 68
Registered: ‎09-29-2009
My Device: Not Specified

Re: Connect to internet

First need to download MDS simulator.you can download it from blackberry site:-

https://www.blackberry.com/CorpDevZone/sd2integration.do?file=https://www.blackberry.com/Downloads/contactFormPreload.do?code=00EC53C4682D36F5C4359F4AE7BD7BA1&dl=A863E2C1...

 

after downloading first run MDS(go in start menu and run it) than run the programme.

Most important thing is that you have a connection with no proxy setting on machine.

Developer
Posts: 638
Registered: ‎07-02-2009
My Device: Not Specified

Re: Connect to internet

setconnection for wifi as ";interface=wifi". go thru these links for more details,

 

http://supportforums.blackberry.com/t5/Java-Development/Connecting-your-BlackBerry-http-and-socket-c...

Thanks and Regards,
PraveenGoparaju.