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
16
votes
4 answers

Can I compress HTTP Requests using GZIP?

I am communicating to a Tomcat Server using a Java ME application on my mobile device. I was wondering if I could compress my requests/responses using Gzip to reduce the number of bytes sent over the network.
Kevin Boyd
  • 12,121
  • 28
  • 86
  • 128
15
votes
7 answers

how to kill a thread which is waiting for blocking function call in Java?

I have a thread: Thread t = new Thread(){ public void run(){ ServerSocketConnection scn = (ServerSocketConnection) Connector.open("socket://:1234"); // Wait for a connection. SocketConnection sc =…
anupsth
  • 657
  • 1
  • 6
  • 18
15
votes
9 answers

Can we run Java applications on iPhone?

Can we run or develop apps for iPhone in Java? Have a look to these links and…
SocialCircus
  • 2,110
  • 6
  • 24
  • 35
14
votes
6 answers

Why can't you have a protected abstract class in Java?

I have an abstract class which looks like: abstract class AbstractFoo implements Bar { //Code goes here } However when I try to make AbstractFoo protected I get an error compile time error complaining that it is an illegal modifier. protected…
binarycreations
  • 3,091
  • 6
  • 32
  • 38
14
votes
1 answer

How to get phone number in J2ME?

How to get the phone number (not contact numbers,etc) in J2ME application ? The phone number that belongs to sim card in the phone.
user818117
  • 420
  • 1
  • 5
  • 15
14
votes
6 answers

Providing Java library, but hiding some classes

I am developing an application in Java ME that I want to provide as a library. Is there no way to hide classes that I don't want everyone to use, but is essential still in order for the library to work? UPDATE: I get that I can omit the public…
Thomas Johansson
  • 583
  • 2
  • 6
  • 15
14
votes
4 answers

How to implement a most-recently-used cache

What would be the best way to implement a most-recently-used cache of objects? Here are the requirements and restrictions... Objects are stored as key/value Object/Object pairs, so the interface would be a bit like Hashtable get/put A call to 'get'…
izb
  • 50,101
  • 39
  • 117
  • 168
14
votes
6 answers

java-me: Convert String to boolean

I'm developing for BlackBerry and I got stuck with this stupid problem: I need to convert string values "1" and "0" to true and false, respectively. Nevertheless, Blackberry JDK is based in Java 1.3, so I can't use Boolean.parseBoolean,…
Jose S
  • 620
  • 3
  • 8
  • 22
14
votes
12 answers

Creating a Mobile Programming Language

I'm thinking about creating a small language that is very easy to type on a mobile phone (J2ME), What is the more appropriate language to implement in order to run it inside a mobile phone (j2me always)? Appropriate meaning, small/easy syntax, easy…
Jon Romero
  • 4,062
  • 6
  • 36
  • 34
14
votes
1 answer

java.net.SocketException: Software caused connection abort: socket write error

I am trying to send an image from a Java desktop application to a J2ME application. The problem is that I am getting this exception: java.net.SocketException: Software caused connection abort: socket write error I have looked around on the net, and…
npinti
  • 51,780
  • 5
  • 72
  • 96
14
votes
8 answers

How do I split strings in J2ME?

How do I split strings in J2ME in an effective way? There is a StringTokenizer or String.split(String regex) in the standard edition (J2SE), but they are absent in the micro edition (J2ME, MIDP).
Spoike
  • 119,724
  • 44
  • 140
  • 158
14
votes
2 answers

J2ME/Blackberry - how to read/write text file?

please give me a sample code for read/write text file in blackberry application.
siva naresh
13
votes
4 answers

How to deal with the most common classes missing on J2ME

I'm trying to code an application which runs un different java platforms like J2SE, J2ME, Android, etc. I already know that I'll have to rewrite most of the UI for each platform, but want to reuse the core logic. Keeping this core portable involves…
Lena Schimmel
  • 7,203
  • 5
  • 43
  • 58
13
votes
7 answers

Blackberry - Loading/Wait screen with animation

Is there a way to show "Loading" screen with animation in blackberry? Options: PME animation content multithreading + set of images + timer/counter standard rim api some other way Any of this? Thanks!
Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
13
votes
2 answers

sony ericsson JP-7 j2me debugging

I'm trying to debug a J2ME application on my Sony Ericsson K790i which is a JP-7 phone on a Windows XP with latest Netbeans, J2ME SDK, Sony SDK, etc. I can USB connect and use the SE Device Explorer. When I start my app from device explorer, it just…
thevikas
  • 1,618
  • 1
  • 14
  • 31