Hello, I create one service and use AlarmManager to send broadcast per 5- seconds to update CPU usage and let widget show result. I'm sure the calculation of cpu usage will not take more than 5 seconds. I made a test that creates one widget on home screen and does nothing and use top command to monitor the variations of cpu usage. I found that the com.android.acore process will occupy cpu usage gradually. I knew that lancher (home screen) application is running in com.android.core process but I don't know why widget update so frequently will cause it occupy more and more cpu usage. So strange. :(
NightGospel On Jul 21, 8:57 pm, Matty <busbus...@gmail.com> wrote: > How are you delaying 5 seconds, and what operation are you doing once > that 5 seconds is complete? Could it be taking more than 5 seconds, > thus slowly building up the number of processes that are running? > > On Jul 21, 5:32 am, NightGospel <wutie...@gmail.com> wrote: > > > > > Hi all, > > > I wrote one widget that updates per 5-seconds and I found that if it's > > run for a period of time, com.android.acore will occupy almost 100% > > cpu. Could somebody give me suggestions or help? > > Thanks in advance. > > > NightGospel -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en