babyblue wrote: > When I load something from a file, I need a dialog that displays all > the file listed in certain directory. And I think this dialog should > work for all kinds of applications. Will there be a FileOpenDialog in > future SDK? There seems to be something like FileOpenDialog in Windows > mobile.
I'm not certain, but I suspect not --- storing stuff in files is not the Android Way. For application data, I believe what you're supposed to do is to provide a ContentProvider that enumerates the files you're interested in, and then show this to the user via a ListActivity. That way you get the ability to refer to your data from anywhere in the system rather than just via your app. If you're wanting to look at files on the SD card, though, I'm not sure. I *think* that given the general style of the system, what you're supposed to do there is to tell the MediaScanner what kind of files you're interested in and then it provides you with the appropriate ContentProvider or Cursor to see them. But I haven't figured out how to work MediaScanner yet, so that's just conjecture. -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ "I have always wished for my computer to be as easy to use as my │ telephone; my wish has come true because I can no longer figure out │ how to use my telephone." --- Bjarne Stroustrup
signature.asc
Description: OpenPGP digital signature

