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 8462783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:15:59+00:00 2026-06-10T14:15:59+00:00

I have one xml file which i want to store it in a internal

  • 0

I have one xml file which i want to store it in a internal memory and later one i just need a path to that file to access it.

I have an existing file so there is no need to write a file inside my program i just want to store it in such a way that user accidently can not delete that file and the application can read it by accessing its path.

Note: I am using third party library which accepts file path only. i dont want to store it in SD Card

I tried AssetManager assetManager = getAssets(); but this doesn’t give relative path when required. I tried /data/data/com.bcl/external.provider and copy my external.provider file in application package but didnt work.

so how to get a path where i can store file and get its path.

  • 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-10T14:16:01+00:00Added an answer on June 10, 2026 at 2:16 pm

    What you can do is write the file inside the files folder in data/data/package_name/ and read it from there. This folder is in internal storage so user won’t be able to read the file. You can get the path using getFilesDir() which will give you as data/data/package_name/files/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

need help to read xml file. i have one xml file which i want
I want to create an xml file which have '&' in one of its
I have an XML file which has many section like the one below: <Operations>
I have a sample xml file which looks like the one below: <Root> <SubOne>
I have one problem , I want to get some data from XML file
i have an xml file sitemap.xml as shown below ..i need to add one
I have generated an XML file that and one of the nodes contains data
I have an XML file that I'm trying to parse with Linq-to-XML. One of
I have one XML request which I need to modify (to XML) and then
I want to add one xml file (which has some static data related to

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.