application works in emulator but not on real device

Hi Everyone,

I have been trying to build this application and avail users to download it from a WAP page.

Now, initially for testing purpose I managed to transfer it on my mobile device which is a Sony Ericsson Z800 using a data cable.

The application downloads 2 images from an Apache Tomcat web server and displays it on user screen. I have created this application using MIDP 2.0. I managed to install it on my mobile device and now when I m trying to send request to the server I wont get any response ? The request itself is not reaching to the web server.

Strangely it works when I give a static path from my mobile browser like: http://xxx.xxx.xxx.xxx:8080/servlet?param1=x&param2=y but when the same path is accessed from installed application it wont work :-(. Its a static IP so there is no problem with changing of IP Address.

Please note that I have transferred only the jar file. Does that make any difference ?

Please guide me as to where I m going wrong..

Regards

[1033 byte] By [siddhsdesaia] at [2007-10-3 2:54:04]
# 1

Hey..

I tried accessing the above mentioned URL from my mobiles browser and it opens up perfectly except the image which is downloaded is shown black and its understandable since its in byteArray and there is no logic to convert it to an image.

But, whenever I try doing that from my application it just wont contact the server :-( while in above case atleast it contacts the server.

can anyone give me some hints about it ?

siddhsdesaia at 2007-7-14 20:43:08 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
I also wanted to give some more information..Application properties:MIDP 2.0CLDC 1.1UI components of application:FormsWaitScreenAlertIcon Image
siddhsdesaia at 2007-7-14 20:43:08 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
maybe a problem from your HttpConnection...show us the code
suparenoa at 2007-7-14 20:43:08 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
Thanks for your reply.If problem was with httpconnection I guess it wont connect through mobile browser either !Once I get hands on my computer I shall show you the code..
siddhsdesaia at 2007-7-14 20:43:08 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

Code not needed! :)

You just can have some problems with your device configuration: Check it.

Try to access the site you mentioned via GPRS but be sure your connection i a pure HTTP and not WAP-HTTP connection. It's the way solved my problem yesterday. For troubleshooting with your device configuration see the data sheet.

I hope it should be useful.

Cheers.

Ivomania

ivomaniaa at 2007-7-14 20:43:08 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6

Hey thanks mate.

I have posted my code in other thread if you would like to have a look at it.

I m using 3G to access my webserver. Oh yeah, I m using pure HTTP and not WAP-HTTP since I have changed the configuration.

But, as I said previously I had no problems doing the samething from the same device although I didnt send any data, just something like pinging the web server and getting a reply in form of say " works1","works2" and so on....

Ok, I will have a look at device config. data sheet.

Thanks for your reply

siddhsdesaia at 2007-7-14 20:43:08 > top of Java-index,Java Mobility Forums,Java ME Technologies...