java-me

Configuring net beans for j2me [kubuntu]

Hi. I'm running Kubuntu and I wanted to create simple application in j2me, so I installed the WTK2.5.2 SDK(thats the latest one supported by Linux) and started programming the application using a combination of Kate and emacs (can't get the code completion to work). Anyway the application works fine when I compile it using the ktoolbar,...

J2ME notifyDestroyed()

notifyDestroyed() method is called by the MIDlet to notify AMS that it want to go to the Destroyed State. once this notification is received by the AMS, it will asssume that the MIDlet has already done all the resources clearing process before calling notifyDestroyed() method. Therefore is it going to kill the MIDlet rather than calling...

Draw transparent arcs, not images, in J2ME?

Hi all, I've been happily coding an opensource game for fun, but i just realized that Graphics.setColor() doesn't understand 0xAARRGGBB... I want to get a more and more transparent colour, in which I'd draw some arcs (discs). My goal was to make them shine though each other like in this image: http://kenai.com/projects/xplode (the logo ...

What are the differences between J2ME Wireless Toolkits and which one to choose?

I already know the differences between Java Edititions (ME, SE, EE), the ME Configurations (CDC and CLDC), Profiles (like MIDP), and additional APIs specified by JSRs. But I am totally clueless about the differeces of the several Wireless Toolkits. For example, Mobile Tools for Eclipse explicitly supports these ones, and states that o...

Unhandled win32 exception occurred in runMidlet.exe

I am using Java ME Platform SDK 3 to start developing Java Mobile application. But I couldn't run a sample application in the emulator. Every time it compiles successfully and an error occurs in the emulator with this message "An Unhandled win32 exception occured in runMidlet.exe [xxxx]". I don't know what to do. I also try to use Netbea...

Which phones support which J2ME (Java Micro Edition) spec?

Hello! I just can't find an up-to-date chart about which mobile devices support which Java Micro Edition version. I'm especially interested in Nokia smartphones and their support for the new JME 3.0. (I wonder that Sun doesn't seems to provide such information.) Please, provide me some links, if you know any! EDIT: I'm probably mixi...

Nokia 6600 battery status detecter

Hey all, I need to write a mobile application (midlet) that will run on Nokia 6600 (SDK 60 2nd Edition CW). the application's goal is to detect power interruptions(whenever there is no more electrical power going into the battery) and log them. this mobile application will be comprised of two modules : 1) a J2ME module, mainly for in...

Message passing to asynchronus working thread in Java J2ME

I'm working on a J2ME Bluetooth application, and one of the classes searches for other Bluetooth devices. It does this in another thread, so the GUI doesn't freeze up. The problem I have is how to pass messages to the thread. I can ask it to search, or cancel searching, and it can tell the GUI it has found some other devices. Currently...

Can I change where the WTK emulator stores its files?

By default, the WTK emulator saves things like files and RMS records under C:\Documents and Settings\username\j2mewtk\2.5.2\appdb Can I change this somehow? ...

Profiling doesn't work on WTK emulator

It used to work, so I know what's meant to happen. You run the emulator and once you're done with it and close it a profiling window pops up and gives you a summary of time spent in different methods. It seems to have stopped working for me. I run my app in the emulator, close it and get this on the console instead: Warning: Could not ...

Is it worth mitigating against the effects of garbage collection?

I have an application where the memory profile looks something like this: The slow upwards crawl of memory usage is caused by the allocation of lots and lots of small, simple, transient objects. In low-memory situations (This is a mobile app) the GC overhead is noticeable when compared to less restrictive memory amounts. Since we kno...

Unable to connect to j2me device emulator

I am having trouble in testing a Midlet. I am using j2me sdk 3, the Midlet builds successfully, but when i try to run it, it fails and it shows the following message in the log Failed to connect to device {0}! Reason: Emulator {0} terminated while waiting for it to register! please advise ...

Are threads really not being garbage collected on WTK emulator?

I'm pretty sure I'm not going mad when I say that Thread objects do not seem to be garbage collected in my J2ME application when running on the WTK emulator (v 2.5.2_01). I have a console message when my run method exits, and it is printed. At the same time I make a call back to the only object that has a reference to the thread and tel...

mobile app auto dial on message from server

How do I autodial a mobile using a j2me app running on it based on a message initiated from a remote server. The server message could trigger the j2me app to dial a predefined number. I have figured out that the dialing can be done with the platformRequest() method through which I can send it a phonenumber as a url string. However I don...

How do I create an alphablending BufferedImage using J2ME (CDC/PP 1.1)

I have a BufferedImage created using new BufferedImage(wid,hgt,BufferedImage.TYPE_INT_ARGB); to which I assemble a wallpaper using multiple other images. It works fine in Jave SE, but when I tried to run the code on a J9 CDC/PP platform I discovered that the Personal Profile BufferedImage has no constructors! Can anyone point me to ...

sms receive on Port 0 of mobile

I am configuring my J2ME app to get an event from the push registry on receipt of an SMS. Would I be able to access the SMS message, before it reaches the inbox? I have read that messages sent to port0 of the mobile go directly to native inbox and we can't access it. Is there any way of diverting or even sniffing these messages so as ...

Where can I get started developing for the blackberry?

I was wondering if there were any convenient websites that offered tutorials on developing applications for the Blackberry platform. I've looked into it before, but always got stuck and couldn't find my way around one obstacle or another. Thanks for any suggetions. ...

web server sending command to a J2ME app

Can a J2ME app be triggered by a message from a remote web server. I want to perform a task at the client mobile phone as soon as the J2ME app running on it receives this message. I have read of HTTP connection, however what I understand about it is a client based protocol and the server will only reply to client requests. Any idea if ...

Playing sounds on Samsung M220 (Telus Canada) - MIDP 1.0

Hello everybody, We're porting some Java applications for the Samsung M220 (Telus). This is a MIDP 1.0 phone and we're stuck when trying to play sounds on it. As far as I know, MIDP 1.0 does not support our audio functions except system beeps. Is there any way to play sounds on the M220 (Telus Canada)? If you have any suggestion on wh...

Efficient Tree Sort

I'm not really happy with my methods to build a tree structure in my J2ME Application. Can anybody point in a more performant direction? If you need some more code to understand my snippets, just comment below. Java Version is 1.4. Many thanks, rAyt if(companyList != null) { companyList.setNodeStructure(null); Hashtable nodes...