intent Getting java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThr

来源:互联网 发布:自制手机壁纸软件 编辑:程序博客网 时间:2024/05/29 17:35

  记录这个问题。已经解决。

This log means that your app is having trouble handling a communication intent. Sometimes problems like this can occur when you send intent with very big extras.

Passing High resolution photos or big file via extras is not recommended, the best practice is to save the file on the external storage (if you haven't done it yet), get a Uri reference to it and send this ref as String in your intent's extra

yourIntent.putExtra("MyUriKey", yourUri.toString)

If you are dealing with an image and quality is not of your concern, you can use a workaround and simply reduce the file's dimension by compressing it.


0 0
原创粉丝点击