You are trying to use a permission that applications aren't allowed to.  You
are then saying that launching your activity requires that the caller hold
this permission, which no app (including the launcher) is going to.

On Fri, Apr 29, 2011 at 9:04 AM, Jason tw <[email protected]> wrote:

> I used
>
>  <uses-permission android:name="android.permission.STATUS_BAR" />
>  <activity android:name=".xxxx"
>        android:permission="android.permission.STATUS_BAR">
>
> When I compile,the error occurred..
>
> [2011-04-29 20:37:30 - xxxx] ActivityManager:
> java.lang.SecurityException: Permission Denial: starting Intent
> { act=android.intent.action.MAIN
> cat=[android.intent.category.LAUNCHER] flg=0x10000000
> cmp=com.xxxx/.xxxx } from null (pid=-1, uid=-1) requires
> android.permission.STATUS_BAR
>
> Why!?
>
> --
> 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