| Author |
Use of Pocket PC hardware keys
|
Fernando Sanz
Ranch Hand
Joined: Jun 27, 2003
Posts: 101
|
|
Hi there, I'm using Personal Java, and I'd like to assign, within my program, certain actions to one of the hardware keys in a Pocket PC. Anyone has done it? any tutorial talks about it? Thanks!
|
 |
Michael Yuan
author
Ranch Hand
Joined: Mar 07, 2002
Posts: 1427
|
|
|
Since PJ is based on AWT, I doubt whether you can do this easily without writing native code. (BTW, you can use native libraries in PJ or PPro). But this is easy to do in MIDP since the MIDP UI is designed for mobile devices from ground up.
|
Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/
|
 |
Fernando Sanz
Ranch Hand
Joined: Jun 27, 2003
Posts: 101
|
|
>> BTW, you can use native libraries in PJ or PPro you mean, writing in Java, I can use some of Microsoft libraries?
|
 |
Michael Yuan
author
Ranch Hand
Joined: Mar 07, 2002
Posts: 1427
|
|
|
You need to write some sort of C/C++ wrapper methods around the native libraries and declare them "native" in your Java code. Yes, You will be able call them from within Java. Search the net for "Java Native Interface" or similiar terms and you will find many references.
|
 |
Fernando Sanz
Ranch Hand
Joined: Jun 27, 2003
Posts: 101
|
|
OK, thanks a lot Michael! I don't think I'm going to do it right now, first I'll try to get my GUI fully working, then (since I've got a deadline). Still, it seems that it's something I'll need sooner or later, so I'll learn it anytime. Thanks again
|
 |
 |
|
|
subject: Use of Pocket PC hardware keys
|
|
|