java-me

Java ME object persistence

I know that Serialization (Serializable) is not available in the Micro Edition of Java. It's kinda straight forward to save primitives like int and java.lang.String objects with the RMS. But if I want to save (make persistant) an arbitrary object? Is that possible? ...

Playing Audio with J2ME

What is the best way to play audio utilzing the J2ME Media libary? For example, should I make use of the MMAPI or should I just use the Midlet's platformRequest(String s) method? ...

JavaMe deploy

Im using Eclipse 3.4, EclipseMe 1.7.9. Im trying to deploy/"create package" a simple project with an external .jar file (LWUIT.jar) included. When I try to create the package with the the .jar file exported (Properties -> Java build path -> order and export) I receieve the following error msg: "Error during build" (Details: Errors duri...

J2ME API Hard to Find

Where is the API for J2ME? Why is it more difficult to find J2ME's API than its J2SE counterpart? Typing String and Java 1.6 will immediately present one with the String Javadoc for J2SE 6, but doing a similar thing for J2ME will present one with a specific phone manufacturer's Javadoc. I am particularly looking for javax.microedition.i...

Is there a standard icon size and color depth for J2ME?

There are many phones, each with it's own icon size (for example, Nokia has 19 different sizes, http://www.j2meforums.com/wiki/index.php/Application_Icon_sizes). I would like to use only one icon (even if it's displayed poorly). Is there a single icon size and color depth that displays in all phones? ...

Is there a method to change a MIDLet icon once it's downloaded?

Given that there are many sizes and color depths for different phones (even for the same manufacturer), i would like to have one application for all of them and then, download a proper icon for the phone de app is downloaded into. Is there a way to change the MIDLet icon once the application is downloaded? ...

Image rotation algorithm

I'm looking for an algorithm that rotates an image by some degrees (input). public Image rotateImage(Image image, int degrees) (Image instances could be replaced with int[] containing each pixel RGB values, My problem is that i need to implement it for a JavaME MIDP 2.0 project so i must use code runnable on JVM prior to version 1.5 C...

Deleting a File using J2ME throws an IOException

I am attempting to delete a file using J2ME's FileConnection.delete() method, but I an IOException is being thrown each time I call the delete() method. I have written a conditional statement to verify the existence of the file, but irregardless of that fact, an IOException is thrown. According to the FileConnection API, when delete() i...

displaying image in j2me application

hi, How do I create and display an image in j2me application? And in which folder can I put that image in my application? ...

Semantic stuff (RDF, OWL) on mobile phones - is it possible?

I'm thinking about using semantic (web) technogies like RDF and OWL in an application on mobile devices. Currently I'm targeting android, but I'd also be interested in the possibilities on the iPhone and on J2ME. I would like to use a lib instead of implementing everything from scratch. I know that there are some libraries and framework...

Question regarding j2me code

I wrote this code for my j2me project. try { Image immutableThumb = Image.createImage( temp, 0, temp.length); } catch (Exception ex) { System.out.println(ex); } where temp is a byte array. When I tried it for localhost it works,& image is get created. But when I tried it on LAN it shows the exception, illegalArgumentException....

JavaME internationalization (i18n)

Does anyone have some knowledge with internationalization with JavaME? I'm looking for as much information as possible like examples, experiences and maybe some best practices. Thanks ...

BlackBerry memory usage

Hi, I am looking for some advice on memory usage on mobile devices, BlackBerry in particular. Using some profiling tools we have calculated a working set size in RAM of 525kb. Problem is we don't really know whether this is acceptable or too high. Can anyone give any insight into their own experience with memory usage on BlackBerry? Wh...

Is MVC good for mobile device?

Is it good for develop MVC Framework by using J2ME (Resource,Speed,Performance,...)? ...

How do I align textPosition for a label?

I wonder if it is possible to set textPosition() for a label that includes an image and a text part so that the text is both TOP and LEFT. The problem I have now is that I need the text to be TOP but when that is selected the text is centered over the image. My wish is that the text is over the image but to the left and not centered. I w...

Java (ME) on Windows Mobile

Does anyone have experience deploying Java ME apps to Windows Mobile? What are the high-level steps to getting started with this, and are there any major drawbacks? ...

Networking problem in Java ME

Ok, so I'm using Java ME to connect to a PHP script on my server, but for some odd reason the networking will only work the first time the app is run on the phone after installation. Any other time, it won't even ask permission to use the network. Here's the method in question: private static String defaultURL = "http://www.roostercogbu...

How to determine the size of an attached file from a IMAP message

Im writing a IMAP mail application running on J2ME. It's my senior project. First, I would like to know that are there any IMAP messages to get the body of message only, not include an attachement? When I send the message to IMAP Server like.. . fetch 20 body[text] The IMAP Server will response like <--BODY PART--> ---MOQ1233897306...

What are J2ME compatible WebDAV libraries?

I need a WebDAV library that will work on a BlackBerry, hence J2ME. Having a BSD like license (or other license that would allow use in proprietary applications) would be ideal, but if one can't be had for free, a proprietary pay-for one is fine too. ...

Where can I find the source code for J2ME?

I am currently working in J2ME. I would like to link the source code of J2ME with my Eclipse installation so that I can go through the contents of it and also it will help me in debugging. I am quite used to this when the source code of J2SE was (is) available in jar format and you just need to link it to Eclipse. Could you please prov...