It's also a private API so you don't even know if it will exist in the form
you are using on any particular device you run on.

On Thu, Mar 24, 2011 at 3:54 PM, Justin Anderson <[email protected]>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 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
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
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