midlet

How to Communicating between a J2ME Midlet and PC?

强颜欢笑 提交于 2019-12-11 02:18:18
问题 How do I make a J2ME Midlet to communicate with a java program or some application on the pc through the cable connected? 回答1: Incredible_Honk is almost right. The key is to use the (standard) system property "microedition.commports". This provides a comma delimited list of the com ports which are available to your application. To open a connection use CommConnection as follows: CommConnection con = (CommConnection) Connector.open("com:<commport name>"); Usually this will provide access to a

How to hide the midlet icon on Nokia phones in J2ME?

给你一囗甜甜゛ 提交于 2019-12-10 18:49:21
问题 I have developed a midlet that is supposed to be invoked using Push Registry only. The user must not be able to manually start the app. I have achieved this by checking if the midlet was not invoked through Push Registry, then exit the midlet immediately. but is there any way to hide the app from application folder on Nokia devices? It seems that it can be done for sonyericsson: How to hide midlet icon in sonyericsson 来源: https://stackoverflow.com/questions/3349477/how-to-hide-the-midlet-icon

Can A Midlet invoke another Midlet?

痴心易碎 提交于 2019-12-10 12:59:25
问题 I been looking around and at sources like this one they say that a Midlet can invoke another if they are in the same suite, or if they are in the same namespace and in the same jar file. I do not understand what a Midlet-Suite is? Also after searching through the web I did not find any documentation or code examples for One Midlet invoking another Midlet. 回答1: The other replies are pretty much taking care of your questions about MIDlet Suites but I would suggest reading the MIDP specification

Open file with MIDlet.platformRequest()

寵の児 提交于 2019-12-07 17:36:51
问题 Is it possible to get a device to open a file on disk using the MIDlet.platformRequest(String url) method? I was hoping to use the following: midlet.platformRequest("file:///path/to/file/file.png"); But this just throws a ConnectionNotFoun d exception. I'm specifically using the BlackBerry platform, but I do not have access to the proprietary BlackBerry API. File could be of any type, so obviously I'm not expecting it to handle every one. Cheers 回答1: No, it is not possible to open arbitrary

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

两盒软妹~` 提交于 2019-12-07 10:40:58
问题 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 1.1 support (also JSR75, which I need in order to save files). It also works as it should on the Nokia E71 (physical device). I then tried to run the MIDlet on several other emulators. One of them, the DefaultCldcJtwiPhone2 from the Java ME SDK 3.0

How to start two J2ME Midlets on Mac OS X with WTK 3.0.

血红的双手。 提交于 2019-12-06 06:19:07
Whenever I want to start second Midlet, I get error MIDlet suite is already running. I'm developing under Netbeans. On Windows it work OK. you have to choose a different phone or emulator from the project properties while you're running the first emulator. 来源: https://stackoverflow.com/questions/4014079/how-to-start-two-j2me-midlets-on-mac-os-x-with-wtk-3-0

JavaME - LWUIT images eat up all the memory

梦想与她 提交于 2019-12-06 01:33:09
问题 I'm writing a MIDlet using LWUIT and images seem to eat up incredible amounts of memory. All the images I use are PNGs and are packed inside the JAR file. I load them using the standard Image.createImage(URL) method. The application has a number of forms and each has a couple of labels an buttons, however I am fairly certain that only the active form is kept in memory (I know it isn't very trustworthy, but Runtime.freeMemory() seems to confirm this). The application has worked well in 240x320

Open file with MIDlet.platformRequest()

半腔热情 提交于 2019-12-05 19:38:53
Is it possible to get a device to open a file on disk using the MIDlet.platformRequest(String url) method? I was hoping to use the following: midlet.platformRequest("file:///path/to/file/file.png"); But this just throws a ConnectionNotFoun d exception. I'm specifically using the BlackBerry platform, but I do not have access to the proprietary BlackBerry API. File could be of any type, so obviously I'm not expecting it to handle every one. Cheers No, it is not possible to open arbitrary files using platform request. MIDP 2.0 requires devices to support platform request only for URL and tel:

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

为君一笑 提交于 2019-12-05 17:39:19
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 1.1 support (also JSR75, which I need in order to save files). It also works as it should on the Nokia E71 (physical device). I then tried to run the MIDlet on several other emulators. One of them, the DefaultCldcJtwiPhone2 from the Java ME SDK 3.0, also claims MIDP 2.0 and CLDC 1.1 support. It doesn't have JSR75, which explains why "FileConnection

How do you organize your code in a j2me project?

随声附和 提交于 2019-12-05 02:58:10
问题 Sorry if what I'm about to ask you is a silly question, but since I'm taking my first steps into j2me I have to do it. I know that you can have multiple screens in a single MIDlet, but that doesn't seem to be a good idea when you're going to have a considerable number of screens(more than 10) as it would end up in a complete mess. So here's the question(not sure if possible), how do you usually organize your code in a j2me project? Or do you put everything inside a single MIDlet or do you