Skip to content

FileUriExposedException Exercice 2 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
GerbenCdg opened this issue Jul 7, 2017 · 0 comments
Open

FileUriExposedException Exercice 2 #16

GerbenCdg opened this issue Jul 7, 2017 · 0 comments

Comments

@GerbenCdg
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant