Babu Prasad
Babu Prasad

Reputation: 344

How to check active wakelocks - android API

I'm writing an app to find all the wake locks which are acquired and the time in which they were active? Is there any android SDK API available to get this information?

Answers in below qn suggests to get the information using proc through adb shell. Is it the only way to fetch the wakelock information or is there any workaround to get it in android framework?

How can I see which wakelocks are active

Upvotes: 1

Views: 1107

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006644

Is there any android SDK API available to get this information?

Not at the present time.

Upvotes: 2

Related Questions