标签: android android-powermanager
我有一个前台服务,可以对媒体进行编码。如果有(app is in background && Screen is locked && !phone is connected to adb through USB),此问题将使我的编码暂停。
(app is in background && Screen is locked && !phone is connected to adb through USB)
我尝试wavelock,AlarmManager都没有成功。我不知道也许我做错了什么,但是我看到了this的新未来,我认为这可能会有所帮助,而且我也不知道如何使用它。
wavelock
AlarmManager