I have found answers to many questions on StackOverflow in the past but this time I'm stumped, so I decided to actually sign up and post my question.
I have developed an app using Android Studio and it works well, however the app just stays on all the time and the device doesn't ever sleep.
I am using the YouTube player API, however this happens even when the video is not playing, which doesn't seem like the right behavior.
I checked the manifests file and these are the only permissions used:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
Any ideas what may be causing this? I see people often trying to do the opposite - they want to keep the screen ON.
Thanks in advance