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

Touch macht Druck

Jul 14, 2015

Download

Technology

Pixelfahnder
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Touch macht Druck

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

Page 2: Touch macht Druck

actual situation

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

Page 3: Touch macht Druck

actual situation

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

capacative touchscreens(e.g. Samsung Galaxy Nexus)

Page 4: Touch macht Druck

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)

Page 5: Touch macht Druck

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)

Page 6: Touch macht Druck

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!)

Page 7: Touch macht Druck

Demo

own drawing demo(drawn on a Samsung Galaxy

Note with S-Pen)

Page 8: Touch macht Druck

Demo

own drawing demo(drawn on a Samsung Galaxy Nexus)

Page 9: Touch macht Druck

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)

Page 10: Touch macht Druck

Demo

a view into code

Page 11: Touch macht Druck

Conclusion

a pen works better and ist more detailed

Page 12: Touch macht Druck

Conclusion

but it can even be better

Page 13: Touch macht Druck

Conclusion

with the right SDK

Page 14: Touch macht Druck

http://innovator.samsungmobile.com

Download

Page 15: Touch macht Druck

Simple JAR file (Demo)