Questions tagged [java-me]

Java Platform, Micro Edition, or Java ME, is a Java platform designed for embedded systems.

Java Platform, Micro Edition, or Java ME, is a Java platform designed for embedded systems (mobile devices are one kind of such systems). Target devices range from industrial controls to mobile phones (especially feature phones) and set-top boxes. Java ME was formerly known as Java 2 Platform, Micro Edition (J2ME).

  • Technology overview for beginners on Oracle.com - Introduction to Mobility Java Technology:

    To develop applications using wireless Java technology, you'll need to assimilate information from several fields. You'll need to understand something about wireless communications technology, the business of wireless communications, and a lot about the Java platform. Where should you begin? This page contains a high-level overview of wireless Java technology and many links to detailed information about specific subjects...

API Documents

CLDC 1.1 API Documentation

MIDP 2.0 API Documentation

5775 questions
2
votes
1 answer

Custom Date Formatting in J2ME

I would like to format a J2ME Date object to only show the date part, not the date and time. What would be the easiest way? Would probably need to include an external library to do this.
IanG
2
votes
1 answer

Using MIDP Canvas keyPressed / keyCode on BlackBerry to get Canvas.FIRE for trackball click

I have a MIDP application that I would like to run on BlackBerry devices. It's quite generic, the one gotcha is that when I override the Canvas keyPressed(int keyCode) method, I'm not capturing the trackpad click events. Normally you would use…
Simon Woodside
  • 7,175
  • 5
  • 50
  • 66
2
votes
2 answers

Is it possible to run pdf file from J2ME

There is a pdf file in a web server. Accessible from, let's say: http://domain-name/files/test.pdf Is there a way to call a function to open this pdf file from the default pdf browser (if exists) of the mobile device? Thanks in advance. Note: I am…
JCasso
  • 5,423
  • 2
  • 28
  • 42
2
votes
1 answer

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving. Is the situation improving significantly? Are…
mike g
  • 1,791
  • 1
  • 18
  • 25
2
votes
1 answer

LWUIT textarea scroll issue

I have problem with LWUIT scroll. I have a form contain textarea and 20 labels. When it scroll to the bottom, it jump to the top (like cycle). Sorry for my bad english :( This is my code public class ScrollMidlet extends MIDlet { public void…
Tan Nguyen
  • 97
  • 1
  • 7
2
votes
1 answer

How to access SIM contacts in Blackberry

I need to access contact list in blackberry, I writ following code to do that: private void readContacts() { try { PIM pim; pim = PIM.getInstance(); String lists[] = pim.listPIMLists(PIM.CONTACT_LIST); …
Talha
  • 699
  • 2
  • 12
  • 33
2
votes
7 answers

Data in J2ME RecordStore does not persist across sessions

I'm building a mobile app with J2ME, and I've found that the data I write into a RecordStore can be accessed while the program is still running but it is lost after quitting and restarting it. No exception is thrown, the data is simply lost. UPDATE:…
neo2862
  • 1,496
  • 1
  • 13
  • 27
2
votes
2 answers

BlackBerry java.io.IOException: null

I am using following code for getting contents of a web page String url = "http://abc.com/qrticket.asp?qrcode=" + "2554"; try { url += ";deviceside=true;interface=wifi;ConnectionTimeout=" + 50000; HttpConnection connection =…
Talha
  • 699
  • 2
  • 12
  • 33
2
votes
3 answers

Java / Eclipse - macro to specify current method name?

I'm using eclipse and want to have a "macro" that the preprocessor will replace with the name of the current method before compiling it. I have an error reporting function, that is called as: reportthis(String errormessage) - different functions…
2
votes
2 answers

Locator.geocode(...) freezes/blocks UI in OS 5 devices(Blackberry Java)

In my BlackBerry app, the Locator.geocode(...) request is inside a Thread but it still blocks the UI in OS 5 devices. In OS 6 and 7 devices it works fine. The UI is not blocked. From the moment Locator.geocode(...) is called till it finishes the UI…
ExpensiveBelly
  • 444
  • 5
  • 8
2
votes
0 answers

j2me image processing: emboss effect and sketch effect not working

I'm working on an image processing project on the j2me platform. I have managed to apply simple effects, which do not involve convolution matrices, like sepia, grayscale, negative and posterize. I even managed to apply a blur effect using the…
Suveer Jacob
  • 893
  • 7
  • 11
2
votes
4 answers

"Out of Memory" error in nokia 5610 while loading MP3 file

i am developing one j2me application to play wav & mp3 file. problems are: while try to play mp3 file in my phone (nokia 5610d) it is making "Out of memory" error. while try to play Wav file it is giving "Sounds are not allowed" exception. few…
user200957
2
votes
1 answer

I need my Screen to wait for a thread to end before being pushed

I need my app to start a thread (after clicking on a button) that does something, get me some variables then push a screen that displays those variables. The problem is that I can't get my screen to wait for that thread. Every time I run the app, I…
vanvana
  • 128
  • 7
2
votes
1 answer

Using the hardware volume buttons to control the volume in a j2me application, nokia phone

I'm writing a Java ME application for the Nokia 6212 phone. Part of what the application does is to play short videos, which works fine. However, I have encountered a problem with volume control via the two buttons on the side of the phone. They…
David N. Welton
  • 1,875
  • 18
  • 33
2
votes
1 answer

Push Registry unregister Connection

I'm working with J2ME application, that works to send/receive sms from specific port. Somehow I made some mistake with the code and make the application goes error. When I already solve the error the application always receive 2 sms (the first one…
Crazenezz
  • 3,416
  • 6
  • 31
  • 59