How to prevent phone from going to idle mode
问题 I've developed an application that streams music (via internet connection) using service and having trubles streaming content without phone going idle. While i was developing my application each time i tried case mentioned below the music was reproducing fine. Use case : search song, select song from results, play song, screen off -> auto play next song from result list I'm developing using real device - Huawei Mate 20 Lite - OS v8.01 so while debugging it gotta use USB cabel. Like i said