[android-developers] Re: check wakelocked for each process

2011-08-10 Thread Hiko
Hello Dianne, appreciate your answer. I expect that API will be provided from ice cream... Thank you very much. Regards, On 8月10日, 午後3:36, Dianne Hackborn wrote: > Sorry you can not.  There is no application API for this, nor do I expect > there ever to be one. > > > > > > On Tue, Aug 9, 2

Re: [android-developers] Re: check wakelocked for each process

2011-08-09 Thread Dianne Hackborn
Sorry you can not. There is no application API for this, nor do I expect there ever to be one. On Tue, Aug 9, 2011 at 6:01 PM, Hiko wrote: > I implemented "dumpsys power" command with Runtime.getRuntime().exec() > as below. > >try{ >Process process = Runtime.getRuntime()

[android-developers] Re: check wakelocked for each process

2011-08-09 Thread Hiko
I implemented "dumpsys power" command with Runtime.getRuntime().exec() as below. try{ Process process = Runtime.getRuntime().exec("dumpsys power"); BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(process.getInputStream()), 1024);

[android-developers] Re: check wakelocked for each process

2011-08-08 Thread Hiko
I confirmed that various informations including wakelock something by using command "dumpsys power". But, I do not know how to check which the application/service is wakelocked. As far as I checked my output, mLocks.size=0: the above is output. This means no wakelock application/service is avai

[android-developers] Re: check wakelocked for each process

2011-08-07 Thread Hiko
Dear Kostya, Thank you very much for your information. I'll try. Regards, On Aug 5, 8:42 pm, Kostya Vasilyev wrote: > In the adb shell, type "dumpsys power". > > 05.08.2011 15:36, Hiko пишет: > > > Hi, > > > I would like to check/detect which process(s) are waklocked in the > > device. > > if