Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I started learn android development two weeks ago. So i want to create an app that has a button that when you press it it will choose randomly between lets say 100 audio files and play one file.The audio files will be huge so the app size will be huge and i dont want that.Plus i want to update those files periodically(for example once a month).What do i need to know so i can create this .Please help me and sorry for my english.

What I have tried:

I have tried to search everywhere in the web probably i dont ask the right question??
Posted
Updated 12-Oct-16 22:46pm

Why should the app size be huge because the sound files are huge? You probably don't want to "embed" the sounds in the app, but have them as separate files that the app reads from the Android device and plays as necessary.

Start by learning how to create an app with a button that plays a specific sound file. When you have that working, start looking at random numbers and indexing the files via a random number.

And as for updates, a quick google will get you started: android update apps java - Google Search[^] - plenty to read there!
 
Share this answer
 
Quote:
The audio files will be huge so the app size will be huge and i dont want that
That's not true, the app size is independent from the audio files one.

You may distrubute your app together with few sample audio files and let the user to download additional ones form a server, if she/he wish.
 
Share this answer
 
Comments
Μανωλης Ματσαγγος 13-Oct-16 7:10am    
so what do Ineed to know so i can connect an app to a server? MYSQL ,PHP?
CPallini 13-Oct-16 7:40am    
Google.
https://www.google.co.uk/#q=android+app+how+to+retrieve+data+from+a+server

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900