android-youtube-player icon indicating copy to clipboard operation
android-youtube-player copied to clipboard

Kindle Fire Back Button malfunction

Open OhioVR opened this issue 9 years ago • 0 comments

Its working great on Fire TV but there is a problem with the back button on my Kindle Fire HD 3rd Generation (updated with latest OS as of this writing). When I press the back button it doesn't return me to my previous Activity it just sort of ignores my press. On Fire TV the back button works fine. Other people have said they have problems with the Kindle Fire back button as far back as 2012. So it isn't a new issue with your code in particular seems to be a universal problem. One weird thing it does is that it doesn't consistently fail. One out of 20 back button presses manages to close the activity and return to the calling activity. This was also mentioned a common failing on Kindle Fire. My solution was to comment out the line:

this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

In OpenYouTubePlayerActivity.java

I'm not sure this is needed with all Kindle Fire users, or if it is just a weird problem with my code base only. Or just my device...

Thanks for this code, it's pretty fantastic.

OhioVR avatar Jul 08 '15 15:07 OhioVR