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
325
votes
14 answers

Difference between Java SE/EE/ME?

Which one should I install when I want to start learning Java? I'm going to start with some basics, so I will write simple programs that create files, directories, edit XML files and so on, nothing too complex for now. I guess Java SE (Standard…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
302
votes
4 answers

Difference between volatile and synchronized in Java

I am wondering at the difference between declaring a variable as volatile and always accessing the variable in a synchronized(this) block in Java? According to this article http://www.javamex.com/tutorials/synchronization_volatile.shtml there is a…
Albus Dumbledore
  • 12,368
  • 23
  • 64
  • 105
203
votes
11 answers

Extract source code from .jar file

Is there a way to extract the source code from an executable .jar file (Java ME)?
hiba
  • 2,079
  • 2
  • 13
  • 5
118
votes
14 answers

Convert a JSON string to object in Java ME?

Is there a way in Java/J2ME to convert a string, such as: {name:"MyNode", width:200, height:100} to an internal Object representation of the same, in one line of code? Because the current method is too tedious: Object n =…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
91
votes
1 answer

J2ME/Android/BlackBerry - driving directions, route between two locations

On Android 1.0 there was a com.google.googlenav namespace for driving directions: Route - Improved Google Driving Directions But in newer SDK it was removed by some reason... Android: DrivingDirections removed since API 1.0 - how to do it in…
Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
85
votes
8 answers

How do I convert between ISO-8859-1 and UTF-8 in Java?

Does anyone know how to convert a string from ISO-8859-1 to UTF-8 and back in Java? I'm getting a string from the web and saving it in the RMS (J2ME), but I want to preserve the special chars and get the string from the RMS but with the ISO-8859-1…
c4r1o5
60
votes
8 answers

How to get access to raw resources that I put in res folder?

In J2ME, I've do this like that: getClass().getResourceAsStream("/raw_resources.dat"); But in android, I always get null on this, why?
Arkaha
  • 1,582
  • 3
  • 17
  • 19
43
votes
1 answer

Packaging Blackberry OAuth app throwing error

I am creating an application that will post a link onto Twitter. The following code refuses to package up for me, throwing the following error: Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified Here…
34
votes
7 answers

Eclipse IDE- Add jar? Add External jar? Add Library?

I want to integrate TwitterAPIME to my Blackberry project. I have 3 Jar files provided by TwitterAPIME. I am not sure how to link these 3 Jar files to my project. My basic doubts are What is an External Jar ? What is a Library ? What's the…
Chethan Thimmappa
  • 629
  • 2
  • 7
  • 17
30
votes
8 answers

How to trim the whitespace from a string?

I am writing this function for a J2ME application, so I don't have some of the more advanced / modern Java classes available to me. I am getting java.lang.ArrayIndexOutOfBoundsException on this. So, apparently either it doesn't like the way I've…
user458442
  • 309
  • 1
  • 3
  • 3
29
votes
4 answers

Moving to Android from J2ME

Coming from J2ME programming are there any similarities that would make it easy to adapt to Android API. Or is Android API completely different from the J2ME way of programming mobile apps.
maximumcode
28
votes
3 answers

Best way to really grok Java-ME for a C# guy

I've recently started developing applications for the Blackberry. Consequently, I've had to jump to Java-ME and learn that and its associated tools. The syntax is easy, but I keep having issues with various gotchas and the environment. For…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
27
votes
3 answers

Some input files use or override a deprecated API

I just downloaded the new LWUIT 1.5 and when I compiled my project then I saw in the output trace these lines: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. I use Sun Java ME SDK 3.0…
user833129
27
votes
22 answers

What mobile platform should I start learning?

What mobile platform should I start learning? What matters is: ease popularity of the platform low cost of the SDK and actual handheld
flybywire
  • 261,858
  • 191
  • 397
  • 503
26
votes
1 answer

Generating a random hex string (of length 50) in Java ME/J2ME

My app needs to generate a hex string to use as a session ID. Java's SecureRandom doesn't seem to be working ("java/lang/NoClassDefFoundError: java/security/SecureRandom: Cannot create class in system package") I thought of doing something like…
Bataleon
  • 3,194
  • 3
  • 21
  • 26
1
2 3
99 100