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

  • Home
  • SEARCH
  • 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 3314360
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:13:25+00:00 2026-05-17T22:13:25+00:00

I need to write an Android app that would download sounds from the internet

  • 0

I need to write an Android app that would download sounds from the internet for further use.

Where should i store these sounds? Is Sqlite an option? And what’s the best way to load and play these files?
Thanks in advance.

  • 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-17T22:13:25+00:00Added an answer on May 17, 2026 at 10:13 pm

    I would recommend putting the files on the SD Card, if one exists. One thing to note, though, is that you should never hard code a path to the SD card. You would likely want to do something along the lines of:

    try {
            //Create handle to SD card drectory
            exportDirectory = new File(Environment.getExternalStorageDirectory() + "/MyDir");
    
            //Verify export path exists.  Create otherwise.
            if (exportDirectory.exists() == false) {
                if (exportDirectory.mkdirs() == false) {
    
                    //Directory structure could not be created.
                    //Message the user here
                    return false;
                }
            }
    
            //Create handle to SD card file.
            exportFile = new File(exportDirectory.getAbsolutePath() + "/whatever.mp3");
    
            //Do whatever here
    
    } catch(Exception e) {
            //Exception.  Message user and bail
            return false;
    }
    

    From there it is a simple matter of transferring whatever data you want into the file. An SQLite database would likely be overkill for this app, unless you plan on storing a LOT of extra information. There is also no guarantee, unless you store the files directly into the database as BLOBs, that the user won’t mess with the file system between application runs. Though, in the case of MP3s and the like, track / artist type information can be stored directly into the file via ID3 tags instead of using a database.

    As for playing the files back, consult the Android documentation on their audio APIs. There is a ton of great information out there, definitely more than I can repeat here.

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

Sidebar

Related Questions

I write app for Android which will be communicate with HTTP server. I need
I need to write an application that sends data to the Google App Engine
I'm trying to write an Android app that will allow a user to search
I need to test some android app but I depends of some thing that
i need to open a pdf file from my android app. I have the
I'm making a android library app that can download and show special files. now
I would like to write an app on Android to upload my GPS location
I'm working on an Android app that has to store data in a database.
I need to write an app for Android with Adobe AIR with payments capabilities.
I will write an android program. for simplicity, it will need a connection similar

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.