Using Crop intent Getting java.lang.SecurityException: Unable to find app for caller android.app.ApplicationThreadProxy@4266ae80

后端 未结 3 1037
南方客
南方客 2020-12-30 06:09

I am using crop intent to crop the image,most of time it run fine,but sometime getting java.lang.SecurityException: Unable to find app for caller android.app.Application

3条回答
  •  心在旅途
    2020-12-30 06:24

    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.

提交回复
热议问题