This page contains general useful, public information about developing on the Sony Ericsson phones with Java 2, Microedition (J2ME). You will find this information a useful supplemental to Sony’s Developer Website…
Connection Proxy is a software utility that comes with the Sony Ericsson SDK 220.127.116.11 for the Java(TM) ME Platform. It is used to connect your PC to a Sony phone.
This section covers tips and common issues that pop up in Connection Proxy so you can have a way of dealing with them.
When Connection Proxy Won’t Connect….
No need to be embarrassed. It happens to all of us at one time or another. It’s a natural part of life. You wait with anticipation while Connection Proxy gets all fired up and ready to go. That unmistakable “Stauts: Connecting …” message winks at you telling you it’s eager to hook up.
Then it happens. Connection Proxy just simply stops making connections and leave you there unsatisfied. And worse, it seems to send conflicting messages about what’s wrong. Does she it give you a bogus message to divert your attention to what’s really going on? Of is there something need to know about? Does it have a headache? Did it get bad news? Is it telling you things just to pacify your ego?
Rest assured it happens to everyone. But, the good news is there’s help. Start with a checklist:
Push the Right Buttons
The phone has to have Java Developer Mode turned on. This means you have to know how to press the right buttons on your phone. Try
Start the Relationship Over
A hint on the Sony Developer Connection (go to the webpage) about T610 and Z600 phones suggests to cycle the phone power. This worked for me on the Z770i wouldn’t connect up as well. Read as, turn off the phone, shut down Device Explorer and Connection Proxy if they’re on, and then try again.
Be Patient and Do Things Right
One of the things I do that seems to cut down errors is to be patient with the software and methodical in how I actually connect the phone physically to the computer. This seems to solve a lot of problems. When disconnecting the phone, for example, don’t just unplug the chord from the USB port. Shut down Device Explorer and then disconnect the Connection Proxy first. Then unplug the phone from the computer.
Kick Her It To The Curb and Upgrade
Make sure you’re using the latest version of Connection Proxy and Device Explorer. If you’re not then this might be your problem. Installing the latest version actually solved a lot of connection problems for me, especially when developing on the JP-8 phones. Check out this link for a list JP-8 phones.
The Device Explorer is a software utility comes with the Sony Ericsson SDK 18.104.22.168 for the Java(TM) ME Platform. It is used to manage MIDP applications on your Sony phone. Use it to install, delete, and debug the applications you write for the phone.
Device Explorer relies on the Connection Proxy utility (see above) to communicate with your phone. In other words, you have to start Connection Proxy and get a valid connection to your phone before Device Explorer will work.
Device Explorer generates a number of errors. And, not surprisingly, some of them are not well documented. So, all the ones I’ve run into are here. Both the text is shown with the graphic so this webpage can be searched.
Install failed. Internal method error: point-2 OAFcode=44 EXEcode=18 Application Management, Execution Environment error. Execution Environment, authentication failure.
Reason: The phone date and time are not set properly.
This error shows up when you try to install a signed MIDlet suite onto the phone and the date and time are not set. The MIDlet will upload to the phone and everything looks like it’s going fine, but then suddenly, this error pops up just as the loading completes. This error is shown because the phone got the MIDlet, but is complaining because it thinks the date and time of the certificate in the MIDlet is not valid. Why would the phone think that? It’s easy: the date and time of the phone are not set properly.
So I would expect to see this error whenever you install a signed MIDlet that has an expired certificate.
Security and Signing
Always ask your mother for permission. You know the rules. If she’s not available, then get a certificate. That way no one gets into trouble.
Sony’s information on MIDlet Permissions from their forum: https://developer.sonyericsson.com/docs/DOC-1049.
A list of permissions used for different APIs in Java ME.
Add appropriate permissions to the Jad and MANIFEST file before the application is signed. In Netbeans, it’s in the project properties, under Application Descriptor. There’s a tab on that form called “API Permissions.”
The attribute in the .jad MANIFEST file will look something like this:
MIDlet-Permissions: javax.microedition.io.PushRegistry, javax.microedition.io.Connector.sms
To find a list of permission settings in Sony Ericsson phones look here >>>
The official table of permissions
|Application Auto Invocation||javax.microedition.io.PushRegistry
|Read User Data Access||javax.microedition.io.Connector.file.read
|Write User Data Access||javax.microedition.io.Connector.file.write