*> 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 Developer
http://sites.google.com/site/magouyaware


On Thu, Mar 24, 2011 at 3:31 PM, Sarath Krishna
<[email protected]>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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to