How do you use a WakeLock?

Nguyễn Tân

New member
How do you use a WakeLock?
Answer
To release the wake lock, call wakelock. release() . This releases your claim to the CPU. It’s important to release a wake lock as soon as your app is finished using it to avoid draining the battery.
 

Tìm kiếm

Back
Top