// create an event -- this will probably work MotionEvent eventCancelAction = MotionEvent.obtain(30000, System.currentTimeMillis(), MotionEvent.ACTION_CANCEL, 0, 0, 0);
// then inject or force it into the system view.dispatchGenericMotionEvent(eventCancelAction ); // might do the trick, but the docs are unclear about where this comes from -- "gesture is canceled" view.dispatchTouchEvent(eventCancelAction ); // is something you could try, but maybe your test should focus on how your app interpretes Gesture instances On Mar 5, 6:53 pm, Omri <omrikalin...@gmail.com> wrote: > Hey All, > Anybody know what to do to invoke an ACTION_CANCEL event for testing > purposes? My app is an OpenGL ES JNI based app using GLSurfaceView. > Any thoughts? > > Thanks, > Omri -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en