aspose file tools*
The moose likes Android and the fly likes is the a TouchEvent that works like the MouseEvent? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "is the a TouchEvent that works like the MouseEvent?" Watch "is the a TouchEvent that works like the MouseEvent?" New topic
Author

is the a TouchEvent that works like the MouseEvent?

Anton Sigurdsson
Greenhorn

Joined: Sep 29, 2011
Posts: 13
Sorry for bed English.

I was trying to find the TouchEvent for my android phone.
Like the MouseEvent, is their same thing like TouchEvent where i can select a cornets on the screen and make a costumed selectable surface?

MouseListener the same things go´s for the is the same thing like TouchListener out there for android?

is it on the list.

I'm sorry if this is not in approved place in the forum.
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 1950
    
  28
I've moved this to the Android forum for you.
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 3971
    
  17

Yes, the View class has an OnTouchListener which you can use with the View's setOnTouchListener() method. Note that the OnTouchListener is a bit more complicated to use than a normal MouseListener, because it tracks multi-finger touches and touch duration (to handle long touches, and gestures). Read up on the developer's network for more:

Basic use: http://developer.android.com/training/graphics/opengl/touch.html
Gestures and Multi-Touch: http://developer.android.com/training/gestures/index.html


Steve
Anton Sigurdsson
Greenhorn

Joined: Sep 29, 2011
Posts: 13
thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is the a TouchEvent that works like the MouseEvent?
 
Similar Threads
ORM for Android
Adding image to JPanel to display on JLable
ORM for Android
The Mikado Method and Brownfield Development