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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:40:04+00:00 2026-06-05T19:40:04+00:00

I have created a folder called diagrams in my application. In this folder there

  • 0

I have created a folder called “diagrams” in my application. In this folder there are xml files. What I would like to achieve is when I run my application those xml files will be populated in the listview. Basically my application package name is com.my.application.diagrams

I have tried to access the folder new File(“/data/app/com.my.application.diagrams/”);

it shows the directory but the xml files cannot be seen. If I put the xml files somewhere else for example in sdcard and direct use the path /sdcard/ I can see the xml file list. Where should I place those xml files in my application and what path name I should use to access them?

  • 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-05T19:40:05+00:00Added an answer on June 5, 2026 at 7:40 pm

    You can put your xml in Asset Directory or create folder under Assets and put it there.

    E.g
    put your xml files in assets/simple.xml

    To list files from Asset folder use following code

          try {
                String[] files = getAssets().list("");
    
                for (String fileName : files) {
                    //Add this fileName in List
                }
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom Archetypes content type called Résumé and would like to
I have created an Asp.net application. It contains a folder called PDF and a
I have a Folder called Gallery inside which i have created a folder for
I have one created one folder called MYFOLDER inside my folder in have one
I have created an activity called viewActivity. It displays the shared files and folders
I have created a script that will upload files to a general uploads folder,
I have created application where i just need to access data form assets folder.
Hi I have created a user control which is inside a folder called Controls
I have a folder called Datas. This folder has a subfolder called Inbox inside
I have created a user called wine to run Wine under for two reasons:

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.