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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:00:10+00:00 2026-05-23T07:00:10+00:00

I have a program which uses images and audio which i place in a

  • 0

I have a program which uses images and audio which i place in a specific directory in the sdcard.

I need to store the details of these files (file path, file name) into a database. Is there a way to scan this particular folder and retrieve these details and store them into the database?

  • 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-05-23T07:00:11+00:00Added an answer on May 23, 2026 at 7:00 am

    You can use the standard file functions

        File directory = new File("your file path");
    
        File file[] = directory.listFiles();  
                    System.out.println("The length of files is " + file.length);
    
    
    
                    for(int i=0;i<file.length;i++)
                    {
    //for each file object get any details you wish to using the standard functions...jst google :)
    }
    

    now for storing the details in the DB use a datahelper.

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

Sidebar

Related Questions

I have a Java program which uses a lot of text files. The program
I have a C program which uses Lua for scripting. In order to keep
I have been trying to create a simple program with Python which uses OpenCV
Say, if I have a Lisp program, which uses (eval 'sym) and looks it
I have a small Python program, which uses a Google Maps API secret key.
I have a program which has some Textareas / Labels these can be anywhere
I have a desktop program which uses an embedded data base mechanism. For the
I have a C program which uses a scanf to read a number and
I'm developing a matlab program in which I uses polygons(concave or convex). I need
I have a program which uses two threads. I have put the break point

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.