程序未安装& java.lang.SecurityException异常

时间:2010-06-09 20:43:03

标签: android

过去一周左右我一直在处理一个应用程序,前几天我去测试时,我的控制台向我读了以下内容:

[2010-06-08 17:13:36 - CellSafe2] ------------------------------
[2010-06-08 17:13:36 - CellSafe2] Android Launch!
[2010-06-08 17:13:36 - CellSafe2] adb is running normally.
[2010-06-08 17:13:36 - CellSafe2] Performing com.ryan.android.cellsafe.Activity activity launch
[2010-06-08 17:13:36 - CellSafe2] Automatic Target Mode: launching new emulator with compatible AVD 'AVD1'
[2010-06-08 17:13:36 - CellSafe2] Launching a new emulator with Virtual Device 'AVD1'
[2010-06-08 17:13:38 - CellSafe2] New emulator found: emulator-5554
[2010-06-08 17:13:38 - CellSafe2] Waiting for HOME ('android.process.acore') to be launched...
[2010-06-08 17:14:16 - CellSafe2] WARNING: Application does not specify an API level requirement!
[2010-06-08 17:14:16 - CellSafe2] Device API version is 6 (Android 2.0.1)
[2010-06-08 17:14:16 - CellSafe2] HOME is up on device 'emulator-5554'
[2010-06-08 17:14:16 - CellSafe2] Uploading CellSafe2.apk onto device 'emulator-5554'
[2010-06-08 17:14:16 - CellSafe2] Installing CellSafe2.apk...
[2010-06-08 17:14:31 - CellSafe2] Success!
[2010-06-08 17:14:32 - CellSafe2] Starting activity com.ryan.android.cellsafe.Activity on device 
[2010-06-08 17:14:38 - CellSafe2] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.ryan.android.cellsafe/.Activity }
[2010-06-08 17:14:38 - CellSafe2] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.ryan.android.cellsafe/.Activity } from null (pid=-1, uid=-1) requires android.permission.ACCESS_CHECKIN_PROPERTIES

程序的图标出现在我的模拟器中,我已经将android.permission.ACCESS_CHECKIN_PROPERTIES添加到我的Manifest。

出于某种原因,当我尝试使用模拟器中的图标运行程序时,模拟器告诉我“此手机上没有安装程序”。考虑到控制台已成功安装,我觉得很有意思......

关于它为什么不起作用的任何想法?我真的很感激一些帮助,因为这是我下周一的一个课程的原因。

1 个答案:

答案 0 :(得分:0)

我相当肯定你不能持有ACCESS_CHECKIN_PROPERTIES权限。更重要的是,我不知道SDK中使用ACCESS_CHECKIN_PROPERTIES权限的任何内容。