i have a problem in my android torch that i just created with android studio
i have finish building this torchlight and i have run and install it in android phone but there is on problem i will like you to help me to solve it out.
. please help me out.
Running Apps and services are pause when the phone is locked, but you can acquire
WAKE_LOCK key and do your task
PowerManager mgr = (PowerManager)context.getSystemService(Context.POWER_SERVICE); WakeLock wakeLock = mgr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,"MyWakeLock"); wakeLock.acquire();
this will hold the CPU open even if the screen off