Questions tagged [cldc]

Connected Limited Device Configuration (CLDC) is a specification of a framework for Java ME applications. Known versions are CLDC 1.0 (JSR 30) and CLDC 1.1 (JSR 139)

69 questions
3
votes
4 answers

J2ME: How to generate random number?

I just wanted to know how do I generate random number using J2ME CLDC 1.0 MIDP 2.0 ? Basically I want to generate a 14 digits random number each time when the menu item Generate is clicked from the mobile's screen.
Sarfraz
  • 377,238
  • 77
  • 533
  • 578
2
votes
1 answer

preverify:ERROR: floating-point constants should not appear, while running the code in j2me using netbeans 6.9

all I am making a new project in J2ME-Polish2.1.4 and when I create a new project using J2ME-Polish2.1.4, the build is successful but when i run this code then I see the error about floating-point constants with more details below. How to recover…
Faraz Ahmed
  • 1,245
  • 1
  • 14
  • 24
2
votes
1 answer

Why is java.io.ObjectStreamException used in WTK stub generator for enums?

I am using a web service implemented in WCF which has enums defined in the interface. I am trying to call this from a Java BlackBerry client. I am using Eclipse to develop the Java application for BlackBerry. I am using the Sun Java Wireless…
chrish
  • 2,352
  • 1
  • 17
  • 32
2
votes
2 answers

How to change the "Date" and "Time" of the mobile phone using "J2ME"?

I'm developing a mobile application using "J2me" for a configuration "CLDC-MIDP2.0". In my mobile application, I need to make the user should able to adjust the "Date" and "Time" settings of mobile. Here I'm using "DateField" to get the date from…
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
2
votes
2 answers

Alternatives for arbitrary-precision decimals in J2ME

We're making some modifications to a legacy project using J2ME. Until now, decimal numbers were treated as Strings since no arithmetic operations were needed. The values were only displayed as text. Now, arbitrary-precision arithmetic is required.…
Mister Smith
  • 27,417
  • 21
  • 110
  • 193
2
votes
1 answer

Midlet doesnt respond to touch in older touch screen phone

I am very new to j2me. I have developed a basic SMS Banking app. My app works in most phones which are touch and non touch devices (Samsung duos, Monte, Nokia 6120c …, Sony Ericson w300). But when I installed it in a Samsung SGH-D980 it installs and…
Kanishka
  • 143
  • 1
  • 1
  • 12
2
votes
1 answer

Image Map-like Blackberry Control - CLDC Application

Does anyone know of an Image Map-like Blackberry Control that I can use in my CLDC application? If there isn't one, is there a way to get click x,y coordinates on a MainScreen or BitmapField derived control? Thanks,
ConsultUtah
  • 6,639
  • 3
  • 32
  • 51
2
votes
1 answer

Designing keyboard on J2ME color mobile

I want to create a J2ME application for writing SMS faster using QWERTY button on a simple non-qwerty phone. So the application will show all these buttons which user can use I've knowledge on Java and have developed simple calculator too but cant…
Sourav
  • 17,065
  • 35
  • 101
  • 159
2
votes
1 answer

OutputStream not working after InputStream

I'm quite new to sockets and to J2ME and I want to create an app, that would send some text to a server (via socket) and then receive answer. So when I try to write the output, I get an exception: java.net.SocketException: Socket is closed at…
2
votes
2 answers

How to force use of StringBuffer instead of StringBuilder by default in javac?

I am trying to compile the CLDC with kvm on linux, I get an error cannot access java.lang.StringBuilder class file for java.lang.StringBuilder not found at the statement: return getClass().getName() + "@" + Integer.toHexString(hashCode()); I…
adarshaj
  • 1,224
  • 1
  • 11
  • 24
2
votes
1 answer

Javame sdk 8.3 doesn't work on Netbeans

I've faced a problem with configuring Netbeans 8.1 to develop javame application with Javame SDK 8.3. When a javame project is created, Platform property remains grayed, compilation produced the message: Platform home (platform.home property) is not…
Spectorsky
  • 608
  • 4
  • 23
2
votes
4 answers

Java ME Application running fine in Emulator but crashing when deployed to N70. Any way to identify the reason for crashing?

I have developed a Java ME application for CLDC platform. It works fine when executed in an emulator. But when i deploy it to my N70 phone the application doesn't start at all in the phone. In my application there are some 14 classes and am creating…
MohamedSanaulla
  • 6,112
  • 5
  • 28
  • 45
2
votes
2 answers

Trigonometry in CLDC 1.0 / MIDP 2.0 application

How can I use trigonometry in CLDC 1.0 / MIDP 2.0 application? I need "sin cos tan asin acos atan atan2" functions from standart Math library. Thanks
Dmitry Demidenko
  • 3,427
  • 1
  • 22
  • 22
2
votes
2 answers

How to implement date picker in lwuit?

I'm developing a mobile app using j2me and lwuit. There is a lcdui DateField (act as date picker) in j2me. Like that there is any component or item in lwuit. How to implement the date picker (Similar to lcdui DateField) in lwuit. The calendar (in…
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
1
vote
1 answer

Problems with sound on a 6265i Nokia using J2ME and Netbeans 6.1

Currently, I have some basic code to play a simple tone whenever a button is pressed in the command item menu. Using: Manager.playTone(note, duration, volume); I also have a blackberry that I'm testing this same midlet on and the sound works fine. …
DoryuX
  • 179
  • 4
  • 11