+ All Categories
Home > Technology > Touch macht Druck

Touch macht Druck

Date post: 14-Jul-2015
Category:
Upload: pixelfahnder
View: 426 times
Download: 2 times
Share this document with a friend
15
Android does pressure! (a look into problems I discovered when writing pressure sensitive applications)
Transcript

Android does pressure!(a look into problems I discovered when writing pressure sensitive applications)

actual situation

resitive touchscreens(e.g. ViewSonic Viewpad, Jay-tech, ...)

actual situation

resitive touchscreens(e.g. ViewSonic Viewpad, Jay-tech, ...)

capacative touchscreens(e.g. Samsung Galaxy Nexus)

actual situation

resitive touchscreens(e.g. ViewSonic Viewpad, Jay-tech, ...)

capacative touchscreens(e.g. Samsung Galaxy Nexus)

capacative touchscreens with capacitive pens(e.g. Samsung Galaxy Note 10.1)

actual situation

resitive touchscreens(e.g. ViewSonic Viewpad, Jay-tech, ...)

capacative touchscreens(e.g. Samsung Galaxy Nexus)

capacative touchscreens withpressure sensitive pens

(e.g. Samsung Galaxy Note 10.1)

capacative touchscreens with capacitive pens(e.g. Samsung Galaxy Note 10.1)

Android touch APIs Ordinary touch events since API level 1

Getting touch directly dispatched on Views

Some APIs can decide if then take the touch or not!

Pressure available since Android API level 9 (2.3, 2.3.1, 2.3.2, Gingerbread!)

Demo

own drawing demo(drawn on a Samsung Galaxy

Note with S-Pen)

Demo

own drawing demo(drawn on a Samsung Galaxy Nexus)

Android pressure APIs

public boolean onTouchEvent (final MotionEvent event)

MotionEvent

android.view.MotionEvent general touch (since API level 1) and multi touch methods (since API level 5), pressure data (since API level 5, enhanced since API level 9)

android.view.MotionEvent.PointerCoords information regarding the drawing tool (since API level 9)

android.view.MotionEvent.PointerProperties information regarding the drawing tool (since API level 14)

Demo

a view into code

Conclusion

a pen works better and ist more detailed

Conclusion

but it can even be better

Conclusion

with the right SDK

http://innovator.samsungmobile.com

Download

Simple JAR file (Demo)


Recommended