Skip to content

FileUriExposedException Exercice 2 #16

Description

@GerbenCdg

Hello, I'm having a crash due to a FileUriExposedException on the 2nd Exercice (https://github.com/udacity/AdvancedAndroid_Emojify/tree/TLIB.02-Solution-DetectFaces)
my device is a Honor 5C.

   Caused by: android.os.FileUriExposedException:
 file:///storage/9016-4EF8/Android/data/com.example.android.emojify/cache/JPEG_20170707_121204_1635028525.jpg 
exposed beyond app through ClipData.Item.
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1816)

...

at com.example.android.emojify.MainActivity.launchCamera(MainActivity.java:151)
at com.example.android.emojify.MainActivity.emojifyMe(MainActivity.java:93)
at java.lang.reflect.Method.invoke(Native Method) 
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288) 
at android.view.View.performClick(View.java:5646)

Is anyone else having this problem ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions