03-07-2011 07:31 AM
HI all,
I am developing a j2me based application where i need to fetch data from server so i used j2me HttpConnection classes. But its working fine in the JDE / Emulator but exception is coming when i try make httpconnection in my BB9700 handset.
I googled around for this problem and got to add "Deviceside=true/false;" in the URL. But still it didn't work.(Tried both true/false).
Please anyone help me out regarding this problem.
Thanks in advance
Solved! Go to Solution.
03-07-2011 07:40 AM - edited 03-07-2011 07:41 AM
would be easy to answer if you can post the exception you are getting on your device. Also check these articles:
03-07-2011 07:49 AM
Thanks for your reply,
I have already checked these links. They didn't help me out.
Could you please give me any other links or codes.
03-07-2011 07:55 AM
Have you try wifi connection ?
add ;interface=wifi
03-07-2011 11:03 PM - edited 03-07-2011 11:05 PM
I am not using WiFi network. So i don't think it would help me.
03-07-2011 11:50 PM
yosoh wrote:would be easy to answer if you can post the exception you are getting on your device. Also check these articles:
Its throwing IOException in device. But while i run it in emulator it works fine. Getting confused whats goin wrong ![]()
03-09-2011 06:02 PM
Sorry, what you are trying to do is not straightforward: Grab a great big cup of coffee and start here:
Then I would recommend this Thread, especially the 'Required Reading':
Finally try this:
I hope this helps.
03-12-2011 04:55 AM
I have tried all the things but still its not working. Please anyone correct me. Where i'm goin wrong. How its ruu=nning in the emulator ? Not in the device ?
03-12-2011 09:07 AM
Easy. There are three connection method supported on the emulator:
BES (with MDS Simulator)
Direct TCP or carrier
WiFi
Whichever one of these methods you are using on the Simulator is not supported on the device, or at least not without some configuration.
So which of the three methods above are you actually using? You will be specifying or defaulting one depending on the connection string you append to your URL. The various articles I referenced talk about these connection strings so you should be familiar with them.
03-14-2011 03:16 AM
I'm using BES (with MDS Simulator) in simulator. And as per your(peter_strange) articles i have changed the URL as
httpConnection = (HttpConnection) Connector.open(url+parameter+";deviceside=true");
And its working good in simulator.
Now my device only use the BES. So I implmentd the same but its showing Connection Fail ![]()
My device uses Vodafone carrier but i'm not using their internet settings. I'm not getting where I went wrong.