• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to write a file(text/audio/vedio) into/retrieve from internal storage?

chaitra

Lurker
Hi All,

I want to list and retrive all the files stored on phone memory ie. from internal storage.I tried using Environment.getDataDirectory().listFiles() but its returning 0.
I am able to retrieve everything from SD card using Environment.getExternalStorageDirectory().listFiles() and also able to write any file into the card programetically.
Is there any option in android to store files on phone memory(apart from the applications private files using OpenFileOutput())?
Kindly let me know how to fetch phone memory files.Please reply as soon as possible.

Regards,
Chaitra
 
Back
Top Bottom