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

How to set the KeyListener for Canvas.KEY_NUM2 in CodeNameOne

I had this code in LWUIT, but now that I've migrated to CodeNameOne the Canvas class not have the constants KEY_NUM1, KEY_NUM2, etc. And I can't add the Key Listener. form.addKeyListener (Canvas.KEY_NUM1, bListener); Where can I find these constants…
Jazter
  • 31
  • 1
2
votes
1 answer

read write object in codenameone storage

I'm developing a j2me application based on codenameone. I implements some codes and Now I wanna add database to my application. After search a lot I found Storage class of codenameone that simplify database concept in mobile application. In this…
Ahmad
  • 437
  • 5
  • 20
2
votes
1 answer

How to convert an OutputStream into a string?

This is my client code (J2ME): SocketConnection sc = (SocketConnection) Connector.open("socket://localhost:4444"); sc.openOutputStream().write("test".getBytes()); sc.close(); And this is my server code (J2SE): ServerSocket serverSocket = new…
Lior
  • 5,454
  • 8
  • 30
  • 38
2
votes
1 answer

How to handle LWUIT dialogs shown on background threads

I have written an application in LWUIT targeted for a J2ME phone (Sprint DuraXT). The application is for pickup and delivery van drivers. It receives dispatches from a back-end dispatching system that describe pickups and delivers the driver…
2
votes
2 answers

How can I add shadow to the text in a Blackberry LabelField?

I have tried it overriding paint() method inside my own class which extends LabelField, but I ignore if there is another simpler way. My code: protected void paint(Graphics graphics) { int previousColor = graphics.getColor(); …
Pablo
  • 2,834
  • 5
  • 25
  • 45
2
votes
1 answer

Why can't I use polymorphism in j2me?

I'm using LWUIT as my j2me project's GUI library. I've generated a netbeans project using LWUIT Resource editor. And I have a separate project, in which I write additional components for my j2me program. In that separate project, I have a class…
Angstrem
  • 346
  • 1
  • 4
  • 14
2
votes
5 answers

Accesing a function via string stored in Hashtable

If I have function names stored as strings in a Hashtable. Is there a way to access the functions via the stored strings? EDIT I'm afraid the platform that i'm working on CLDC1.1/MIDP2.0 does not support Reflection. Any workaround possible?
Kevin Boyd
  • 12,121
  • 28
  • 86
  • 128
2
votes
1 answer

Disable Command Menu Scrolling LWUIT J2me

I have a form and added four commands to it. When user click on menu option it displays command menu (Menubar within a dialog) which is scrollable. Having command menu scrollable is not user friendly for my app. How can I disable command menu…
Jayesh
  • 31
  • 2
2
votes
1 answer

Obfuscation failed in j2me

I tried to obfuscate my project in j2me..But it is showing the following error.I came to know that this obfuscation error happened only when i importing Json.jar in my project..If i remove this jar means obfuscation is happening..Please help me…
Subburaj
  • 5,114
  • 10
  • 44
  • 87
2
votes
0 answers

J2me -- Executing system codes

Is there a way to execute system codes such as *#06#(to get IMEI) in J2me?
AndosBerry
  • 145
  • 1
  • 12
2
votes
1 answer

How to restrict user to enter 0(zero) in LWUIT Numeric TextField in J2ME?

I wants to create Text Field which allows all number > 0 So I have Done Such Like this : TextField textField = new TextField(); textField.setConstraint(TextField.NUMERIC); But I am not getting How to restrict user to enter Zero. Help Me to sort…
Satyam Koyani
  • 4,236
  • 2
  • 22
  • 48
2
votes
4 answers

Blackberry JDE HTTPConnection problems

So, I'm using the HTTPConnection Class, like so: HttpConnection c = (HttpConnection)Connector.open("http://147.117.66.165:8000/eggs.3gp"); Following what LOOKS like the right way to do things in the Blackberry JDE API. However, my code crashes…
J.R.
  • 5,789
  • 11
  • 55
  • 78
2
votes
2 answers

fix a splash screen image to display in j2me

In my j2me App I have tried canvas which works great on Nokia phone but doesn't run on samsung. For that I have to switch to some FORM which in both cases works but only issue is of size, if I create smaller image to fit for both phone screens, one…
Saqib
  • 1,120
  • 5
  • 22
  • 40
2
votes
1 answer

How to sort Vectors in blackberry using SimpleSortingVector?

I am having trouble to sort Vector for my blackberry app using SimpleSortingVector. My stuff does not sort it remains the same. here is what i have so far... MyComparator class private Vector vector = new Vector(); //Assume that this vector is…
ejobity
  • 305
  • 1
  • 3
  • 13
2
votes
1 answer

LocationUpdate method getting called too frequently on Blackberry

I have a 3 GSM phones and a 3 verizon (CDMA) phones. I have a BB application in which the location listener is set to a 5 minute interval. For 2 of the verizon phones the application's location update method gets called frequently. For the rest,…