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
5
votes
2 answers

What is the difference between CLDC and MIDP for Java Mobile?

Could anyone explain what the difference is between CLDC and MIDP?
Casebash
  • 114,675
  • 90
  • 247
  • 350
5
votes
1 answer

J2ME: How to make a call?

Let's suppose i have created a text box with a phone number in it prefilled. How do i make a call when a button Call is clicked. The call should be for the number specified in the text box. How to make a call programatically for the specified…
Sarfraz
  • 377,238
  • 77
  • 533
  • 578
5
votes
5 answers

J2ME Soft Key Wrapper

Reading some articles, told me that soft keys varies between devices. Some says -6 or -21 for left soft key and -7 or -22 for right soft key. Given this situation, is there any good wrapper or function or best practice to handle it properly? If not…
ariefbayu
  • 21,849
  • 12
  • 71
  • 92
5
votes
1 answer

Reading UTF8 strings from a server through http using MIDP

I want to read UTF-8 strings from a server that I have control of, using java MIDP. My server is sending UTF-8 data. The following code gets close: c = (StreamConnection) Connector.open( myServer, Connector.READ_WRITE); …
Ricardo Acras
  • 35,784
  • 16
  • 71
  • 112
4
votes
3 answers

Java access a public variable outside a class, SecurityException: MIDlet not constructed by createMIDlet

I'm a newbie in java and I have a small problem. I want to access a variable in one class from another. I have three classes and I want to be able to access a variable in the main class to enable me read the array. The error I am getting is …
sammyukavi
  • 1,501
  • 2
  • 23
  • 51
4
votes
2 answers

Interrupting a java thread gracefully

I have written a Java ME puzzle game. I have written the code thus: there is a thread that starts when the app starts, and, once the game has got going, there's a second thread that just runs in an infinite loop -- the main game loop. The second…
Kevin Buzzard
  • 537
  • 4
  • 11
4
votes
1 answer

Java enums in MIDP 2 mobile application

I've just got back to MIDP development after some 4 years of .NET 2 and Java 5 and 6. During that time I got to like using enums quite a lot. Enum is a language feature that allows a developer to have more confidence in some parts of his code,…
ptdev
  • 453
  • 1
  • 3
  • 20
4
votes
3 answers

Drawing Glassy Buttons

I'm going to draw some sort of glassy buttons in java me (targeting devices with MIDP 2.0). An Example: Actually I need to impelement Gradient and Bevel-Emboss effects in Java ME, do you have any opinion or "guideline" on how to implement…
Harry.B
  • 621
  • 5
  • 18
4
votes
2 answers

FileConnection permission messages in j2me midp 2.0?

I am using midp 2.0. Here, I am using FileConnection for read and write files on mobile memory. I am able to read and write files on mobiles successfully. But while I am trying to write file data on mobile, it asking message like below. Application…
Saravanan
  • 11,372
  • 43
  • 143
  • 213
4
votes
4 answers

how to install javax.microedition.lcdui package into Netbeans

I am using NetBeans 6.9.1. When I try to import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Displayable; import…
MJH
  • 653
  • 2
  • 14
  • 36
4
votes
2 answers

How to quit / terminate / stop a j2me midlet?

Surprisingly terminating a midlet doesn't work in my application. Maybe it is because I'm using Threads, but destroyApp() and notifyDestroyed() are not sufficient. Take for example the following code: protected void destroyApp(boolean arg0) throws…
hsmit
  • 3,906
  • 7
  • 34
  • 46
4
votes
4 answers

MIDP 2.0 version issues: $method is undefined for $type

I've written a MIDlet that does several "advanced" things: fetching images from the web, resizing them, saving them on the phone, displaying them. This all works perfectly in the Nokia S60 3rd Edition FP1 emulator. This device has MIDP 2.0 and CLDC…
benvd
  • 5,776
  • 5
  • 39
  • 59
4
votes
2 answers

Java ME - Multiple forms, moving from one screen to the next

I am using Java Micro Edition and I am trying to create a simple login form with a record store. When the user enters the details I'd like to check them against the ones stored and then move onto another screen like a welcome area. I have a feeling…
Garbit
  • 5,805
  • 6
  • 39
  • 72
4
votes
2 answers

Java Midlet Deployment

So, I've develop a simple hello world midlet using the Samsung SDK 1.1.2 and I've Packaged the midlet. Now I have two files (a JAR/JAD) combination. How do I get these installed on my phone? As you can tell from the question, I'm new to phone…
leepowers
  • 37,828
  • 23
  • 98
  • 129
4
votes
3 answers

Is HTTP PUT supported in J2ME?

I just noticed a strange thing in MIDP 2.0 API: The HttpConnection class apidocs make explicit references to methods GET, POST and HEAD, but no other methods. Does this mean that they are not…
hvuoltee
  • 408
  • 4
  • 8
1
2
3
39 40