09-07-2010 02:28 PM
I'm very new here so sorry if my question is a bit stupid. I'm trying to download my file located in the web, but i'm having lots of problems.
connection = (HttpConnection) Connector.open(url, Connector.READ, true);
inputStream = connection.openInputStream();
The thing is that this code above gets connection time out, always.
Any idea? Please help.
Thank you very much.
Solved! Go to Solution.
09-07-2010 02:33 PM
Welcome to the forums!
Since you are new, I would recommend reading the following thread since it contains valuable information:
It may seem overwhelming at first but the thread contains all the key components needed to connect successfully.
It sounds like you may be missing your connection suffix which is necessary dependent on the BlackBerry device's setup.
09-07-2010 02:51 PM
Ok, thanks very much, i'll take a look.
One last question though: if i'm working with BlackBerry JRE 5.0, does that mean that i'm working with OS 5.0? Because that will mean that thread you suggested me it's not for me...
Thanks a lot!
09-07-2010 03:47 PM
What you asked is true. If you are working with JRE 5.0, you are developing for OS 5.0 or greater.
If your application works on OS 5.0, it should work on OS 6.0 with a few tweaks here or there.
Regardless, the thread that was posted is a great starting point no matter which OS you're developing for.