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

The Archive Base Latest Questions

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

I plan on making an app for a church, and it’s pretty much a

  • 0

I plan on making an app for a church, and it’s pretty much a relatively simple one, it’s just going to have a menu in the main xml which will contain an about section contact and a clips section. now when the user clicks on clips they will be redirected to an xml file listing all the audio clips for the services of prior weeks which the user can then click to listen to. i was just planning on creating a raw folder and placing all clips inside that folder and then accessing the audio files through the mediaplayer class with a raw. method, but would that really be the best way of doing it? I have several questions here. If i do it that way would I have to modify the code all of the time because i would have to insert the newest clips? if so what is a better way of doing this so i don’t have to continuously have to change my code each week since i plan on inserting the newest audio clip from that weeks service?

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

    Put all of your clips in the assets folder.
    In your app use something like:

    AssetManager assets = getAssets();
    String[] list = assets.list(""); 
    

    This returns a list of all files in assets folder. Here you need to use that array in a list view or handle it to create views in whatever way you find appropriate.

    The easiest would be to use a listView and literally put the file titles in the list by using the array in the adapter.

    ListView listView = (ListView) findViewById(R.id.listView);
    ArrayAdapter<CharSequence> adapter = new ArrayAdapter<CharSequence>(
                 this,
                 android.R.layout.simple_spinner_item,
                 new ArrayList<CharSequence>(Arrays.asList(list)));
    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    listView.setAdapter(adapter);
    

    When its time to use one of the files (perhaps in a ListView.OnItemSelectedListener()):

    assets.open(fileName);
    

    fileName is a string containing the name of the file you have selected.

    This method will not involve changing code when it is time to update.

    If your app is going to exceed 50mb you will need to use an expansion file. This is method is a bit more complicated due to the expansion file downloading and verifying, but it is used in a similar way.

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

Sidebar

Related Questions

I am making a very simple platform independent(at least that's the plan) console app.
I plan on making a main menu for my application which contains 9 square
Making a simple map app, plan on adding buttons to mark specific locations But
I am making a menu test for the employees at my restaurant. The plan
I have a column that is a datetime, converted_at . I plan on making
Im making a workout app and just would like to clarify that the way
I am making a simple music playing online app. I would like to make
I'm just getting started on making a board game using Cocoa/Objective-C. My plan is
Im making a Dictionary App for my subject and my plan is to view
Background: We have app a, b, and plan to add more apps into this

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.