java-me

Which is the best book to start Java ME?

I am looking for a book to start programing using Java Platform, Micro Edition (Java ME). Which book will you recommend to a reader who knows Java and have some knowledge of Java EE? Thanks everyone in advance. ...

Geographical position from Java mobile application?

Is there a way of programmatically determining a rough geographical position of a mobile phone using J2ME application, for example determining the current cell? This question especially applies to non-GPS enabled devices. I am not looking for a set of geographical coordinates, but an ability for a user to define location specific softw...

Developing applications for Nokia 5310

EDIT: Is there any other phone systems that allow connecting into the native messaging system to read input in the composer? ...

How can I override a class in J2ME Polish binaries?

I am using a UI component from J2ME Polish. I found a simple bug in the code, and want to quickly fix it but cannot find any build scripts in the download package, although source-code is included. The problem cannot be solved by extending the class as it involves members with private access. How should I go about fixing it? Should I...

Full Resolution Camera Access in j2me

I'm trying to do an image capture on a high end Nokia phone (N95). The phone's internal camera is very good (4 megapixels) but in j2me I only seem to be able to get a maximum of 1360x1020 image out. I drew largely from this example http://developers.sun.com/mobility/midp/articles/picture/ What I did was start with 640x480 and increase...

JavaME: Convert String to camelCase

What would be a simple implementation of a method to convert a String like "Hello there everyone" to "helloThereEveryone". In JavaME support for String and StringBuffer utility operations are quite limited. ...

Issues with Image loading in J2ME applications on Motorola phones

The standard way to load an image in a J2ME application is using the Image.createImage method and the recommended image format is PNG. Now, the J2ME specs dont lay down any restrictions on the implementation of this method or the in memory representation of an Image so, each vendor has a different implementation. Motorola in particula...

Server side synchronization for mobile applications or client side synchronization

if a mobile application needs to get data from multiple servers, is it better to call each server from the mobile device, or call one server which then talks to all the other servers? "should synchronization be initiated by the server or the mobile client?" to what degree does client do the book keeping. Say if the application is mob...

Image.createImage problem in J2ME

Hi All, I tried this on J2ME try { Image immutableThumb = Image.createImage( temp, 0, temp.length); } catch (Exception ex) { System.out.println(ex); } I hit this error: java.lang.IllegalArgumentException: How do I solve this? ...

J2ME Properties

J2ME lacks the java.util.Properties class. Although it is possible to put application settings in the JAD file this is not recommended for many properties. (Since, some platforms limits the size of JAD file.) I want to put a configuration file inside my jar file and parse it. And I do not want to go with XML because it will be overshooti...

Is there a good HttpClient library for J2ME/MIDP?

I want to call some RESTful web services from a J2ME client running on a MIDP enabled mobile device. I read the MIDP api for HTTPConnections and thought this is just crying out for a simple wrapper to hide all those unpleasant byte arrays and such like. Before I write my own I wondered whether there was a good open source library already...

Processing chunked encoded HTTP POST requests in python (or generic CGI under apache)

I have a j2me client that would post some chunked encoded data to a webserver. I'd like to process the data in python. The script is being run as a CGI one, but apparently apache will refuse a chunked encoded post request to a CGI script. As far as I could see mod_python, WSGI and FastCGI are no go too. I'd like to know if there is a wa...

Are socket connections faster than http on Blackberry?

I'm writing an app for Blackberry that was originally implemented in standard J2ME. The network connection was done using Connector.open("socket://...:80/...") instead of http:// Now, I've implemented the connection using both methods, and it seems like some times, the socket method is more responsive, and some times it doesn't work at...

Open file with MIDlet.platformRequest()

Is it possible to get a device to open a file on disk using the MIDlet.platformRequest(String url) method? I was hoping to use the following: midlet.platformRequest("file:///path/to/file/file.png"); But this just throws a ConnectionNotFound exception. I'm specifically using the BlackBerry platform, but I do not have access to the prop...

Do I have to use J2ME for Blackberry development?

I would like to begin developing for the Blackberry platform and, specifically, the Bold and also the Storm device which is coming out soon. Do I need to get into Java and J2ME or can I develop sites in ASP.NET and just keep utilizing the skills I already have? I am completely new to mobile platform development and have no idea what it...

Is there a universal application ID for sending MMS in J2ME?

I'm having problems with this. The thing is that when I send an MMS with J2ME to another devices with JSR 205 (two tested: SonyEriccson w610i and Nokia 5300), a receiving icon flashes, but the message is not in the inbox folder. I think this happens because of the application ID -which may not be recognized-, so, is there a universal ap...

Interacting with UI threads in Java/J2ME

I'm writing a J2ME application. One of the pieces is something that polls the contents of a directory periodically, and, if there are any new things, paints them on the screen. I've done this by having the UI form launch a polling thread with a pointer back to itself, and when the polling thread finds something it calls back to the for...

What is the best approach to handling exceptions thrown in a separate thread?

I am working on a J2ME project that spawns worker threads for numerous tasks such as downloading HTTP content. The basic thread layout is similar to most java apps--there is a main UI thread and worker threads spawned to do stuff behind the scenes. My question is what is the best way to handle exceptions that occur in the worker threads?...

j2me service discovery and discoverable same time

Hi! I try to write a simple client/server application (all application is a bluetooth service and client). The client code find the bluetooth devices and register in to the local db. But when the inquiry running, it's not discoverable. (The server code run on another thread). I the emulator it's work (the scan time is 0), but when I ins...

Store large amounts of data in RMS

I need to store large amount of data using RMS cocepts through J2ME so how can i store that mutiple column data those data must be hardcoded so i need to store those multiple colum and rows data please help me how can i do this in this i have struct if i come to know how can i store/hardcode through RMS concept please help me ...