How can use this permission if I want to use? On Mar 24, 4:54 pm, Justin Anderson <magouyaw...@gmail.com> wrote: > *> When I searched for the reason in forums, some said it is restricted > > > permission. Can anyone please help me out with this issue. * > > If it is a restricted permission then you cannot use it... hence the word > "restricted." > > Thanks, > Justin Anderson > MagouyaWare Developerhttp://sites.google.com/site/magouyaware > > On Thu, Mar 24, 2011 at 3:31 PM, Sarath Krishna > <sarathkrishn...@gmail.com>wrote: > > > > > > > > > Hello everyone, > > > when I try to call getAllPkgUsageStats(); function of IUsageStats > > package I get this exception. > > > ERROR/AndroidRuntime(7413): java.lang.RuntimeException: Unable to > > create service org.gps.CPUusage: java.lang.SecurityException: Neither > > user 10081 nor current process has > > android.permission.PACKAGE_USAGE_STATS. > > > But, I have included PACKAGE_USAGE_STATS permission in my manifest > > file. > > > When I searched for the reason in forums, some said it is restricted > > permission. Can anyone please help me out with this issue. Thanks in > > advance > > > thanks, > > sarath > > > -- > > 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
-- 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