Android wear - how to capture touch events

前端 未结 2 1637
情话喂你
情话喂你 2021-01-24 12:24

I want to capture the touch events on Android wear (I am using Samsung Gear Live) to draw the trajectory of touch. I tried to capture onTouch event and onGenericMotionEvent even

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-24 13:01

    If you want to debug offline you can get the touch co-ordinates from adb:-

    adb shell getevent
    

提交回复
热议问题