View.OnTouchListener and screen rotation coordination
I am writing an Activity that implements View.OnTouchListener. I noticed that if I press my finger to the screen, change the screen orientation (which triggers Activity destruction and recreation) while keeping my finger down, and then lift my finger, the OnTouchListener.onTouch doesn't get called. It seems like it should, since lifting my finger is a MotionEvent.ACTION_UP. Am I misunderstanding the library/using it wrong, or is this a bug in the framework?
Before the rotation starts, your onTouch listener should receive a MotionEvent.ACTION_CANCEL completing the event stream. You don't receive an additional MotionEvent.ACTION_UP because no new event stream has been started.
ImageView bitmap is stretched after activity transition
Paste text on Android using ADB?
Map multiple columns to one column for custom search suggestions
Checking HTTPURLConnection response without closing
Play music to caller with mute my mic on Android
Does the Back Button fail to call stop()?
Imageview wrap at bottom and right position in android
How can i parse a Json Api response array of following format?
sign Android Studio project apk as system app to use permission INJECT_EVENTS
Changing visibility with LinearLayout and weight
Applying a Style by code to a button
Android studio 1 button 2 event
Android Grdiview not displaying correctly
My bitmap turns black with canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.MULTIPLY) Android
Compiling Cocos2d-x project on both Linux and OSX
How to track down file not found errors when debugging Android apps built with Cordova