On Wed, Feb 2, 2011 at 8:23 PM, kiros88 <[email protected]> wrote: > Hi i was wondering if there was a way to find files dynamically > through the sd card but like without using strings that i know like > right now im doing > > File home = new File("/sdcard/");
Use Environment.getExternalStorageDirectory() to get a File object pointing to the root of external storage. > to just get taht directory is there a way to do one thats like dynamic > to search through all folders in sd for files ilke .jpg and then store > them in a string array Use the MediaStore content provider, since it did all that work for you. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

