aspose file tools*
The moose likes Java Micro Edition and the fly likes Use of Pocket PC hardware keys Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Use of Pocket PC hardware keys" Watch "Use of Pocket PC hardware keys" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use of Pocket PC hardware keys