Re: [android-developers] PACKAGE_USAGE_STATS exception

2012-07-23 Thread Justin Anderson
There is no alternative. The answer is you CAN'T do this. Period. The End. Done. Final. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Jul 19, 2012 at 12:23 AM, Pushpa wrote: > Then, What is the alternative to get the usage statistics. Which API

Re: [android-developers] PACKAGE_USAGE_STATS exception

2012-07-23 Thread Pushpa
Then, What is the alternative to get the usage statistics. Which API should we use to get this? *Regards* Pushpa On Saturday, March 26, 2011 3:51:26 AM UTC+5:30, MagouyaWare wrote: > > You have just been told by an Android Framework Engineer (Dianne) that you > CAN'T! That is the answer. > >

Re: [android-developers] PACKAGE_USAGE_STATS exception

2011-03-25 Thread Justin Anderson
You have just been told by an Android Framework Engineer (Dianne) that you CAN'T! That is the answer. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Mar 25, 2011 at 4:16 PM, Sarath Krishna wrote: > I am running it on samsung galaxy phone. How can

Re: [android-developers] PACKAGE_USAGE_STATS exception

2011-03-25 Thread Dianne Hackborn
You can't. You need to build your own device image with your app on it. On Fri, Mar 25, 2011 at 3:16 PM, Sarath Krishna wrote: > I am running it on samsung galaxy phone. How can I use this permission > on this phone? > > -- > You received this message because you are subscribed to the Google > G

[android-developers] PACKAGE_USAGE_STATS exception

2011-03-25 Thread Sarath Krishna
I am running it on samsung galaxy phone. How can I use this permission on this phone? -- 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, s

Re: [android-developers] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Dianne Hackborn
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 wrote: > *> When I searched for the reason in forums, some said it is restricted > > permission. Can anyone please help m

Re: [android-developers] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Justin Anderson
*> 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

[android-developers] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Sarath Krishna
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.permis

[android-developers] PACKAGE_USAGE_STATS exception

2011-03-24 Thread Sarath Krishna
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.permis