How to open a file in another app with FileProvider for Android 7+

Ali Kamalizade
Sep 2, 2018 · 2 min read

Android 7 Nougat and higher have new security restrictions which makes Uri.parse() unusable to get access to files in internal or external storage. Instead, we need to use the FileProvider class which is available in the Android Support Library. In this tutorial, I show you how to use FileProvider to access files in internal and external storage.

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Ali Kamalizade

Written by

Software Engineer @leanix_net. Co-founder of Sedeo with a passion for web and mobile development. I write about topics I’m interested in 🚀

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade