Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8076695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:19:03+00:00 2026-06-05T15:19:03+00:00

I am trying to access a file for xml parsing with this: InputStream inputStream

  • 0

I am trying to access a file for xml parsing with this:

InputStream inputStream = context.getAssets().open("/mnt/sdcard/cat/bird/flowers.xml");

When it runs i get the following error:

06-13 23:13:22.620: W/System.err(3118): java.io.FileNotFoundException: /mnt/sdcard/cat/bird/flowers.xml
06-13 23:13:22.620: W/System.err(3118):     at android.content.res.AssetManager.openAsset(Native Method)
06-13 23:13:22.620: W/System.err(3118):     at android.content.res.AssetManager.open(AssetManager.java:314)
06-13 23:13:22.620: W/System.err(3118):     at android.content.res.AssetManager.open(AssetManager.java:288)

I have checked the spelling of the file and i have checked the location several times. The file is there and correctly named. What is going on here?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:19:05+00:00Added an answer on June 5, 2026 at 3:19 pm

    getAssets().open(...) is used to access files which you have packaged with the .apk file by placing them in the project’s /assets directory.

    Trying to open a file with this path…

    /mnt/sdcard/cat/bird/flowers.xml
    

    …means the AssetManager will try to look for a packaged file which you originally placed in your project with the following path…

    /assets/mnt/sdcard/cat/bird/flowers.xml
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to access an XML file from JSP on my Tomcat server.
I'm trying to access an xml file over http. The address is similar to:
I have a windows service which is trying to access an xml file from
I am trying to access certain pieces of data from an xml file, here
I'm new to xml parsing, I am trying to parse the following xml file
I am trying to access a 'local' xml file stored within my project prior
I'm trying to access an XML file within a jar file, from a separate
I am trying to access an XML file store in the resources directory. I
I have an array in an xml file that i'm trying to access, however
I'm trying to access an XML file using DOM. One node is already commented

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.