我创建了一个简单的相机应用程序。在除了Android 4.4之外的所有Android版本中都可以正常工作。当我从我的相机应用中拍照时,会出现以下错误。
java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED from pid=26089, uid=10120
出现错误:
出错位置:
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://"+ Environment.getExternalStorageDirectory())));
如何在KITKAT上解决这个问题?
请告诉我!
谢谢!