File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes J2me : red key interrupt..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2me : red key interrupt....." Watch "J2me : red key interrupt....." New topic

J2me : red key interrupt.....

vijeth Ag

Joined: Mar 23, 2011
Posts: 2
Hi all.,

anybody hv solved this issue.,

some of the devices doesnt let the j2me handle the device red key., instead it shows a menu with : pause, minimize, terminate options.,

I want the jar thats running to recognize the red key pressed, so that i can trigger a pause menu in my own application(my application is a game, so that i wud pop up in game pause menu)

Thanks is advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17257

Welcome to the JavaRanch, Vijeth!

We don't expect flawless English here, or they would have sent me away long ago. But please avoid non-standard usages like "hv" and "wud", And especially, things like "ur" and "p ls".

Unfortunately, none of the phones I've worked with even have a "red" key. So I can't tell you anything specific. If you can determine what keycode it generates, however, you can set up a key event listener for it.

An IDE is no substitute for an Intelligent Developer.
vijeth Ag

Joined: Mar 23, 2011
Posts: 2
hi Tim Holloway., about english yes its considered.

and about the "red" key its there in all devices "the call end' key - thats the one I am speaking about...

also we can't implement the key listener since, the j2me cannot recognize the call end key, because when this key is pressed it directly opens the device menu for that application (pause, terminate, minimize).
I agree. Here's the link:
subject: J2me : red key interrupt.....
It's not a secret anymore!