I don't know if some kind of dialog will or won't show up in the future, but I don't see any reason not to have it. After all, there is the sd card and there is the files directory for your app. Regarding the ContentProvider, that doesn't really figure into it much unless you need to provide access across application boundaries.
On Apr 6, 7:19 am, babyblue <[EMAIL PROTECTED]> wrote: > Thanks for you reply :) > > On 4月6日, 下午8时31分, David Given <[EMAIL PROTECTED]> wrote: > > > 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 > > 1K下载 --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

