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
Highlighted
Contributor
Posts: 15
Registered: ‎06-11-2010
My Device: NA
My Carrier: NA

not able to make a http connection

I am using Blackberry plugin for eclipse and developing an application.I used a connector to esatblish a http connection like this

HttpConnection httpconnection=(HttpConnection) Connector.open (http://www.google.com);

however the message comes that connection is timed out.

 

I studied a bit about MDS.Do i have to use MDS here and if yes how to use it.

 

Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: not able to make a http connection

Hi Anshul,

 

U need to go thru this thread first..

 

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

 

Thanks,

Kanak

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Developer
Posts: 70
Registered: ‎01-02-2009
My Device: Not Specified

Re: not able to make a http connection

Read this KB article, this will help you.

 

How to make Http Connetion

 

Also look at the httpdemo in JDE Samples directory.

---------------------
Best Regards,
Kannabiran.
---------------------
Don't forget to mark your post as solved if you got answer. And give kudos.
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: not able to make a http connection

And the short answer to your question is, when running httpDemo in your Simulator, you need MDS Simulator running for it to work.