File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Javame touch screen control. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Javame touch screen control." Watch "Javame touch screen control." New topic
Author

Javame touch screen control.

Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

I need to know how to get the xy co-ordinates where my finger touches my screen.

This will allow me to do ANYTHING (based on touching..)

Yeah.. Touchness.. Cheers.


Churs,
Will.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

There's no built-in touchscreen API for Java ME, although some devices might include their own proprietary ones.

However, the touchscreen is normally presented as though it was a mouse device.

The downside to mouse-like-ness is that mice don't pinch/stretch, but that's a fairly new concept on any mobile platform.


Customer surveys are for companies who didn't pay proper attention to begin with.
Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

OK.. Is the mouse-like API built in? There is almost no chance my phone has its own touch API.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

Will Richardson wrote:OK.. Is the mouse-like API built in? There is almost no chance my phone has its own touch API.


I'd have to RTFM for the particular JME profile you're running, but it's a good bet.
Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

I found an example on roseIndia which seems to work, but i cannot simulate it on my computer (with eclipse)
Will Richardson
Greenhorn

Joined: Nov 01, 2010
Posts: 16

This one - make sure you read the comment at the bottom:http://roseindia.net/j2me/pointer.shtml
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javame touch screen control.