• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is the a TouchEvent that works like the MouseEvent?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've moved this to the Android forum for you.
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Anton Sigurdsson
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic