How to detect slider open in Xperia Play
-
09-06-2021 - |
Question
i am developing a game on xperia play. Can any one tell me how to detect Slider open for the device.
Thanks
Solution
Maybe there are more sophisticated solutions, but you can add to your activity android:configChanges="keyboardHidden" in manifest.
And handle opening with onConfigurationChanged method.
OTHER TIPS
Check logcat. If any broadcast fired when slider opened, you might want to use a broadcast receiver. Look this tutorial for broadcast receiver
To detect the gamepad slide in/out for Xperia PLAY, please use the following configuration constant: NAVIGATIONHIDDEN_*
For more information about configuration, please visit: http://developer.android.com/reference/android/content/res/Configuration.html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow