Questions tagged [midp]

Mobile Information Device Profile is a set of Java ME specifications. Known versions are 1.0 (JSR 37), 2.0 and 2.1 (JSR 118) and 3.0 (JSR 271)

592 questions
3
votes
1 answer

JavaME MIDlet Will Not Clear Variables?

I have written a JavaME program that accesses a web service to retrieve values, the web service is running on a tomcat server. I am facing a very strange problem, whenever i run the program, the program downloads new values like I anticipated but…
Des C
  • 61
  • 2
  • 4
3
votes
1 answer

J2ME: Get only year/month/day from DateField

I'm trying to use dateField to display which year, month or day has been selected in the calendar. public DateField getDateField() { dateField = new DateField("dateField", DateField.DATE); dateField.setDate(new…
Peter
  • 33
  • 1
  • 3
3
votes
1 answer

Encode GIF in J2ME

I have an Image object in J2ME and I'd like to enconde it to GIF. I've already found a JPEG and PNG encoder as well, but I'm wondering if it's possible to encode my Image in the GIF format, returning it's byte array. I'm doing something like…
Eduardo Abreu
  • 245
  • 2
  • 3
  • 9
3
votes
2 answers

why getAppProperty() is not static method?

getAppProperty(String key) is instance method in MIDlet class. Since all midlet in midlet suite share same manifest/jad file, so why cant it be a static method?
anupsth
  • 657
  • 1
  • 6
  • 18
3
votes
1 answer

MIDP in Java ME SDK 8.1

I have a CLDC 1.1 / MIDP 2.0 project which compiled fine with Java ME SDK 3.2. Recently I have upgraded my Java SE to 8 and as a result the Java ME SDK started displaying errors on Windows startup (saying that Java version is 8 while 7 is…
0xF
  • 3,214
  • 1
  • 25
  • 29
3
votes
1 answer

PWC1406: Servlet.service() threw exception java.io.IOException: Invalid chunk header When client send data to server

I am developing an application using J2ME to send the GPS coordinates received to the server and i am new to developing client server application. Everything works fine with the use of Nokia N97mini or E71. But when i tried it on HTC HD2, i get the…
Nivek
  • 719
  • 4
  • 15
  • 27
3
votes
2 answers

J2ME Midlet exception :IOException reading reader invalid first byte

When i run my midlet with Java Wireless toolkit, midlet runs correctly, but when it try to parse a textfield, following error occurs; java.lang.RuntimeException: IOException reading reader invalid first byte 10010111 at…
Mp0int
  • 18,172
  • 15
  • 83
  • 114
3
votes
2 answers

Class.getSuperclass() replacement on Java ME?

How can I get the the superclass of a Class instance in Java ME. That is, fake the Class.getSuperclass() functionality with the limited functionality available in CLDC 1.1? What I want to do is to let the abstract super class do something like…
PeyloW
  • 36,742
  • 12
  • 80
  • 99
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
3
votes
4 answers

How do I read strings in J2ME?

I'm using the MIDP 2.0 (JSR 118) and I just noticed that there is no reader for strings in J2ME. Does anyone know how you are supposed to read Strings from an InputStream or InputStreamReader in a platform independent way (i.e. between two java…
Spoike
  • 119,724
  • 44
  • 140
  • 158
3
votes
4 answers

Java licensing model : When do I need to pay Sun for using their software?

Java licensing model : When do I need to pay Sun for using their software?
user241432
3
votes
2 answers

Get pressed keys in J2ME with GameCanvas

I would like to get whether (for example) the 3 key is pressed (KEY_NUM3). I have tried getKeyStates but it only detects the game action keys. How could I get the states of non-game action keys? (I have overridden the keyPressed and keyReleased…
user
  • 6,567
  • 18
  • 58
  • 85
3
votes
1 answer

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone mentions the usage for j2me. The application builds…
letronje
  • 9,002
  • 9
  • 45
  • 53
3
votes
1 answer

Issues in image transformation in j2me

I'm developing a game in j2me. I don't need sprites for this game, I'm painting images directly. The method which I'm following to flip an image is as follows. But on device,it is shown as in fig 1.1. How to resolve this problem.? Please…
user1554336
3
votes
1 answer

How to get Hashtable values and show in listview in another screen using J2me MIDlet

I am developing a Application in J2Me for Nokia Device. I have created menu list and added ClickEvents(CommandEvent), my problem is how to get hashtable data one by One in Display like listview in another screen by clickEvent.
rkasula
  • 74
  • 7