Android Manifest.permission权限
上一篇 /
下一篇 2009-07-16 17:13:06
/ 个人分类:Android
51Testing软件测试网nk-kc;F$}/Zk_ 51Testing软件测试网;fMqR8g2Ip]cu1^
51Testing软件测试网6IZ6y1C p-o\8OWhen I port my Android APP from Cupcake to Donut, I meet the following issue:51Testing软件测试网K G ?P.?w\8Y
Anybody has clue for it? (BTW, the APP can be worked well on Cupcake.)51Testing软件测试网9L%B{/H|zp1]OZ
51Testing软件测试网5I T` p]$x,\5?Q
*fYHy"XZ*W-JI)c3pl0E/AndroidRuntime( 2225): java.lang.SecurityException: Neither user 10013 nor current process has android.permission.WAKE_LOCK.
fX-HXGh^0E/AndroidRuntime( 2225): at android.os.Parcel.readException
9l0]jVk"r7C,S0(Parcel.java:1 234)51Testing软件测试网jb&f)NV
D
..................
iQjBA0,A x2B$J#lb0 51Testing软件测试网 [
Y]7`;u&_,o
4T.lMY Sxmf0It is resolved.51Testing软件测试网8F H[3e"?-Em-u/J
:y"uQ(Wzc6v6Esk051Testing软件测试网NN q pj%]android.permission should be added into androidmanifest.xml:
7qVqUjD0
Q&[1jQ%S;i0................51Testing软件测试网V!C-g/O*A9e wzO
package="com.example.fslmmapp"51Testing软件测试网'V8ke.B5crj:@F;`
android:versionCode="1"
GX1x
t!SO8L"n\iy0 android:versionName="1.0">
8aa3R"r U2T7`0 <uses-permission android:name="android.permission.CAMERA" />