views:

68

answers:

1

I want to search for files on the users mobile with specific extensions.

I tried searching but could not find any direct API's.

Is there a specific API's or is there tedious way of achieving the same. Or is there a mechanism to call linux calls for find or something similar

Thanks

+2  A: 

You can find the user's SD card via Environment.getExternalStorageDirectory(), which you can then traverse to find what you need.

CommonsWare
thats a pretty sad way of searching, especially if u think android created by google
the100rabh
If you are specifically looking for media files -- which, in your extremely short question, you didn't specify -- try the `MediaStore` content provider. I don't know how readily you can use it to search by file extension, though.
CommonsWare