I've created an application which uses around 15 small audio files. Right now I'm using mp3 files and each is around 200KB. These files are stored in my res/raw directory. I'm using SoundPool class to play the files in my application. I'm hoping to put this application on the android market place. Can one of you suggest what is the best way to store so many audio files? Will my application be scalable? Is wav or ogg format better approach instead of mp3? Please let me know.
Ok so I see a lot of people saying they are having problems with video playback when importing from their SD Card but Im having the opposite problem.
I just switched over from the Metro PCS Samsung Code which is a Windows 6 phone to EVO and I put my SD Card in my EVO. All my music files play and the mp4 video files play but the audio from the mp4 video files dont. Does anyone have advice on how to fix this?
I have an audio file in .3gp format on my Android device which I wish to upload to YouTube. I know that YouTube is a video upload site and that I need to convert this sound file to video. I just want an image to display all the time the audio is playing. Google tells me there are number of tools that can help me. But I want to do this via java code from my Android device.
I need to record audio and video files in 3gp/mp4 format at the same file and same time.
When i run my application file is created with videofile.3gp but video does not record in sd card on the emulator.please let me clear one thing does video records on the emulator? if i run this code on android supported device do these error clear. Please help me. I am new to this topic.please find the code and errors below.
* @copy Rights * audio.java * sample code for Eminosoft Developerworks Article * Android development Team * www.eminosoft.cm
I want to know how to get the ringtone,audio files in the device and I want set them as alarm. I am working in the code to set the alarm and I want to know how to retreive audio or ringtones from the device.
I am on a standard website that has a normal upload button, I need to upload a PDF file, But when I click on the upload button on the web site a popup window from my Android phone appears and says "Choose action" and gives me access to the gallery, camcorder, voice recorder , choose music track, gallery (again), select music track and voice recorder (again).
I need to some how get access to my SD card and my download folder to be able to pick the the pdf file that I need to upload. I have tried this both on the default internet browser and Google Chrome, but both give the same options.
Still waiting for my Desire to arrive, but I read on coolsmartphone that people were having difficulty with the BBC iplayer. I was under the impression that the Desire handeled flash. does anyone have any comments? Can you listed / watch the embedded audio/video files on the BBC wedsites?
I'm happy reading and writing to a pre-set file, and could manually populate a listview, but I'm hoping there is an official(or not) filebrowser I missed, or other more elegant solution to present the user with a directory listing, and let them select a file.
I am trying to create a folder and several subdirectory within it on the SD Card... I then want to transfer files that I have stored in /res/raw to that folder... I addition, I want this to only happen once, the first time the program is ever run. I realize that this is ridiculously open-ended, and that I am asking a lot...
Friends, My application has to get current gps position in every seconds and write this data as byte array to a file in files directory. To check the data in that file I tried to open mnually. But i couldn't open. How can i read the file. The file is a text file
I have a project written for Android devices. It generates a large number of files, each day. These are all text files and images. The app uses a database to reference these files.
The app is supposed to clear up these files after a little use (perhaps after a few days), but this process may or may not be working. This is not the subject of this question.
Due to a historic accident, the organization of the files are somewhat naive: everything is in the same directory; a .hidden directory which contains a zero byte .nomedia file to prevent the MediaScanner indexing it.
Today, I am seeing an error reported:
Regarding the sdcard, I see it has plenty of storage left, but counting
$ cd /Volumes/NO_NAME/.hidden $ ls | wc -w 9058
Deleting a number of files seems to have allowed the file creation for today to proceed.
Regrettably, I did not try touching a new file to try and reproduce the error on a commandline; I also deleted several hundred files rather than a handful.
However, my question is: Are there hard limits on filesize or number of files in a directory? am I even on the right track here?
Nota Bene: The SD card is as-is - i.e. I haven't formatted it, so I would guess it would be a FAT-* format.
The FAT-32 format has hard limits of filesize of 2GB (well above the filesizes I am dealing with) and a limit of number of files in the root directory. I am definitely not writing files in the root directory.
i am updating an app i developed so that it downloads xml files it needs for content management. the files download successfully to the emulator but are not placed in the /files directory that openFileInput() is attempting to read from. i am admittedly unsure as to the proper overall solution here - app originally used packaged XML and was fed to an XMLPullParser - but i cant even get as far as attempting to parse new XML at present because my app cant find the new file sitting in /data/data/[myApp]/ and not /data/data/ [myApp]/files and i cant figure out how to get it in there. the download doesnt work at all if i add that folder to path.e.
I'd like to know if there's a way to write files into the main directory just before the system shutdown, something like this:
End all processes (-> unmount disks?) -> mount /sdcard rw and / rw -> copy files from /sdcard to / -> unmount disks -> shutdown/reboot
Same with boot image (flash, in this case, and not copy / mod files)... is it possible? Or do I require to boot into recovery for these operations? I know I can remount as rw my system directory via ADB
Also, is it possible to do the same thing with the build.prop file? This, or during startup (before mounting partitions with standard permissions).
Of course, this having root (but not a special kernel to enable this kind of "before mounting" thing).
I've thought of starting to develop an application and one of its features is that it downloads some content (images, files, etc) and organize them into folders in accordance with site they were downloaded.
Well, the question is... How do Android organize your files? In Windows, for example, I could create some folders, one for each site, or one for each time period. But in Android, how does it work? Is there a system of folders like Windows? Or is there a totally different way to organize files?
Can an android project in Eclipse be configured so that the built-in builders read from an alternative source directory? ie. "test/src" instead of "src"? and possibly even "test/res" instead of "res"? (It appears that setting dirs in the property files will only affect ant and not the built-in builders)