[分享] 搞了一個禮拜的擴展狀態列..消失
經過一個禮拜的到處詢問
大概從SDK寫出來的APP都不能達到效果
程式碼:http://pastebin.com/3MArMjN6
一開始的問題是 中間那段if根本沒有跑進去
到處問之後發現我沒有宣告使用權限
加入之後,反而又出現ActivityManager: java.lang.SecurityException: Permission Denial: starting
Intent { act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10000000
cmp=com.tteesstt/.tteesstt } from null (pid=-1, uid=-1) requires
android.permission.STATUS_BAR
又跑到美國網站問之後,得到的答案是::
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.
和
SDK applications cannot hold that permission, AFAIK, and I don't know
why you have an activity that requires that permission.
所以大概是除了launcher那種脫離(?)SDK的app才能吧..
--
※ 發信站: 批踢踢實業坊(ptt.cc)
推
05/01 16:04, , 1F
05/01 16:04, 1F
→
05/04 19:00, , 2F
05/04 19:00, 2F
→
05/04 19:01, , 3F
05/04 19:01, 3F