GithubHelp home page GithubHelp logo

android.os.FileUriExposedException: file:///storage/emulated/0/Pictures/JPEG_20170403160746_742136310.jpg exposed beyond app through ClipData.Item.getUri() about tedbottompicker HOT 6 CLOSED

parksanggwon avatar parksanggwon commented on September 12, 2024
android.os.FileUriExposedException: file:///storage/emulated/0/Pictures/JPEG_20170403160746_742136310.jpg exposed beyond app through ClipData.Item.getUri()

from tedbottompicker.

Comments (6)

yunhoi129 avatar yunhoi129 commented on September 12, 2024

Sorry. it's my fault i used low version.. thx.

from tedbottompicker.

ParkSangGwon avatar ParkSangGwon commented on September 12, 2024

@yunhoi129 Thanks

from tedbottompicker.

sivabramha avatar sivabramha commented on September 12, 2024

Using getactivity().getExternalFilesDir(null).getAbsolutePath() we can solve your problem

from tedbottompicker.

parshwa1596 avatar parshwa1596 commented on September 12, 2024

android.os.FileUriExposedException: file:///storage/emulated/0/Documents/Patidar.pdf exposed beyond app through Intent.getData()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1960)
at android.net.Uri.checkFileUriExposed(Uri.java:2362)
at android.content.Intent.prepareToLeaveProcess(Intent.java:9901)
at android.content.Intent.prepareToLeaveProcess(Intent.java:9853)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1612)
at android.app.Activity.startActivityForResult(Activity.java:4555)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:767)
at android.app.Activity.startActivityForResult(Activity.java:4513)
at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:754)
at android.app.Activity.startActivity(Activity.java:4874)
at android.app.Activity.startActivity(Activity.java:4842)
at com.patidar.marriagebureau.Activities.Printprofile.previewPdf(Printprofile.java:501)
at com.patidar.marriagebureau.Activities.Printprofile.createPdf(Printprofile.java:486)
at com.patidar.marriagebureau.Activities.Printprofile.createPdfWrapper(Printprofile.java:416)
at com.patidar.marriagebureau.Activities.Printprofile.access$000(Printprofile.java:65)
at com.patidar.marriagebureau.Activities.Printprofile$1.onClick(Printprofile.java:171)
at android.view.View.performClick(View.java:6312)

i got these error what can i do?

from tedbottompicker.

abdullaabdulla422 avatar abdullaabdulla422 commented on September 12, 2024

you need to add provider in your manifest

from tedbottompicker.

momodu avatar momodu commented on September 12, 2024

I had this same issue but it is now resolved.
Please check this link: https://www.codeproject.com/Articles/1273560/Xamarin-Forms-Share-Media-With-Other-Apps

from tedbottompicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.