I am trying to following post.
But it is not working for me. It crashes when I get the image from camera. The error is from cursor.getString(index) in getDataColum function.
Can you help me?
Thank you.
I am trying to following post.
But it is not working for me. It crashes when I get the image from camera. The error is from cursor.getString(index) in getDataColum function.
Can you help me?
Thank you.
I think you should be use FileProvider. Basically, from android docs:
FileProvider is a special subclass of ContentProvider that facilitates secure sharing of files associated with an app by creating a content:// Uri for a file instead of a file:/// Uri.
It is a new way to share content. In case of get URI, it works similar. You can use the following example: https://developer.android.com/training/camera/photobasics