java.io.IOException: Error in HTTP operation - java-me

I am from Bangalore-India. I have developed few J2ME applications that involves client/server interaction through HTTP connection.
I am testing my application on both the leading operators of the country- Airtel and Vodafone. My Midlet works fine with S60rd edition and S40 2nd edition(6030) phone. but as soon as i switch to S40 3rd edition phones like 6233, I am not able to acces the GPRS through my MIDLET. Though the GPRS is working fine with the native phone browser.
Even the MIDLET is not able to access GPRS on currently released phones such as 5310 Xpress Music and 3110 classic.
I have done some packet captures as weel at my server end but the observation is that my request is not reaching upto the server.
I have gone through tons of web references that talk abt APN settings, but no solution has worked for me :(
Is there anyone who can help me out so solve this S40 specific problem.
Thanks in advance.

Can you access GPRS from any MIDlets other than yours? If not, then it sounds very much like a GPRS settings problem.
If I remember correctly, S40 handsets have a Streaming settings option in the settings menu. Ensure you've created a GPRS access point which is referenced in the streaming settings option.

Related

Tizen XMLHttpRequest via bluetooth

I am writing a Tizen app (web app/Javascript) for Samsung Gear S2. I am trying to send XHRs, and this works fine as long as connected via WiFi. However, when connected to my phone via bluetooth, there is an error and the connection can't be established.
I have read different information that this might not be possible at all / not be possible due to an SDK bug / only possible when routing the information through an Android app on the phone / etc.
Does anyone of you know what the issue is and how it may be solved?
Thanks!
The bluetooth interface is managed by the SAP (Samsung Accessory Protocol) and you could the SAP SDK to achieve what you want.
http://developer.samsung.com/gear/develop/creating-your-first-app/setup-sdk

Tizen Wearable communication

I wanted to know if there is a way for two samsung wearables to communicate with each other directly through an application.
Is there any documentation?
It is not possible right now. For any communication you need a host device, which is a mobile phone right now.
or workaround by hacking some IR or Audio or Camera/Screen communication ... I have this in mind for long but never started project , any hints welcome

My location application not working

I created an application in j2me to get the current location of a device and I sent it to a nokia phone whenever I launch it, instead of showing the current longitude and latitude of the device it will open a bluetooth connection. Please help me with that what went wrong?
You may need to check what location methods you have enabled in phone's settings (in some Nokia phones, there is settings->application settings->location->my position->methods or something like that) to see if you have other methods except Bluetooth GPS enabled (Integrated GPS, WiFi, Network, ...).
But, I believe, that by default it would use internal GPS... does your Nokia really have it?

j2se to j2me WTK bluetoooth communication

I need some way to communicate between J2SE app and j2me midlet running in emulator in netbeans. How can I achieve this?
Well, technically, Netbeans is a J2SE application so you are already doing this everytime you launch the J2ME emulator.
I expect that when Netbeans launches the emulator, it does it in a way that sends the emulator standard output and standard error back to Netbeans. Presumably using the emulator executable command line parameters. That is one-way communication though.
The debugger inside Netbeans uses a standard protocol to retrieve information and manipulate the emulator:
http://java.sun.com/j2se/1.4.2/docs/guide/jpda/jpda.html
Of course, using this still restricts what you can do.
Since the emulator is meant to represent a phone, the only pure-Java to pure-Java communication channel is networking. That means opening a tcp, udp or http connection between the two environments. Of course, getting this to work once you put your J2Me application on an actual phone will require quite a bit of setup on the J2SE side of things.

Midlet connectivity via broadband or GPRS

Midlet using HttpConnection to connect a webservice application.
A mobile can use a wireless broadband to connect to internet or can use internet facility provided by the network provider i.e. Vodafone or Virgin which is I think known as GPRS. Correct me if my understanding is wrong.
Now my question is when the midlet will run which connectivity it will use? Secondly do I need to code differently for midlet to use GPRS or it doesn't matter?
I deployed my application on Nokia E65 and it asked me which connection to use. The mobile had both wireless lan and provider GPRS active.
On IPhone the preference is for wireless lan. (Not related to J2me)
There is no standard Access Point Selection APi in J2ME.
That means the MIDlet itself can't decide whether to use Wi-Fi or GPRS.
Some phones will allow the user to change application settings in order to force a MIDlet to use a specific network when it is available (and maybe prompt the user for an alternative when the preferred network is not available).
This is mostly because there is no standard way to describe a wireless network that contains enough information : QoS, cost per byte downloaded and uploaded, average bitrate, ping time...
In most cases, the logic to automatically choose a network without those information would be too complicated and not reliable enough.
Manual Access Point selection is the only way to put the user in charge of the cost of data transfer, so far.
It depends on the client mobile phone. On some models, there is only one GPRS configuration that is used by all applications including midlets, On some others the configuration used for browsing can be different than the one used by midlets.

Resources