Post subject: Store the data in raw folder of res directory

by Honest » Fri, 10 Apr 2009 18:45:19 GMT

Sponsored Links

My application has requirements to store or edit the file data in the
file which is available in Raw folder. Can some one tell me how it is
possible ?

I want to store the audio data in mp3 file which is available in res

Post subject: Store the data in raw folder of res directory

by Mark Murphy » Fri, 10 Apr 2009 18:53:10 GMT


You cannot modify an APK's resources in-place at runtime. You would need
to copy the resource out to some other location (e.g., SD card) and
modify it there.

Mark Murphy (a Commons Guy)  | 

Warescription: Three Android Books, Plus Updates, $35/Year


Sponsored Links

Other Threads

1. readonly singleline TextView and text which doesn't fit there completely

is it possible to find out which portion of text is visible, so i can
alter it if it doesn't fit completely?

or even better, is it possible to set textview somehow to such
behaviour, that in case when text doesn't fit there completely it will
show only beginning of text and append "..." to the end?

2. When to use Activity or View ?


I'm writing an application with two screens.
Screen 1: Parameters settings
Screen 2: Display info (depending on parameters settings)

I've used one Activity and two LinearLayout views to implement it. I
switch from screen 1 to 2 with setContentView(...) and it works fine.
However, in the Android documentation, I can see that using two
activity may be recommended. So, when should we use Activity ? Why not
using view ?

Thanks for the help.


3. Eclipse 19% BUG

4. Problems running the emulator (error: is not responding)

5. best way to setup 3 buttons

6. Make a button reset a program

7. Will there be a FileOpenDialog in future SDK?