Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
How to get file path from content uri using chooser intent?

When I select any pdf file from storage and open it through chooser intent(Intent_View), I want to get the path of that file in this intent.

override fun onNewIntent(intent: Intent?) {
    super.onNewIntent(intent)
    receivedIntent = intent
    receivedType = receivedIntent?.type
    if (receivedIntent?.data != null) {
        receivedUri = receivedIntent?.data!!
        Log.i("path", "onNewIntent: ${receivedIntent?.data!!}")
        if (receivedType == "application/pdf"){
            findNavController(R.id.fragmentContainerView).navigate(R.id.pdfReader)
        } else if(receivedType == "application/epub+zip"){
            findNavController(R.id.fragmentContainerView).navigate(R.id.epubFragment)
        }
    }
}
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!