To me, it was somewhat odd that the sdk did not have a file selector. After all, the user might be working with application files (/data/ data/<app.namespace>/files/) or on the sdcard. That being said, I don't know if you'd necessarily want to have the view be consistent. What happens if you design a UI for your app that looks great, but then relies on the default file selector look? I guess the best example of this is a game. Look at nearly all games out there (for PCs, not just mobiles). They normally have their own look&feel when showing a file dialog.
Lets take your example and look at replacement. Really if you are using an activity for this, that means some kind of Intent has to be defined and documented (similar to the intents you can already use. Loading a page in the phones browser for instance). This is one area I'm a bit confused on. I don't really see how defining Intents can be done well unless a central body defines them. For instance, my file selector might expect a totally different intent from what yours expects. I guess to me, it makes more sense to forget about even using an Activity here and instead extend Dialog for a file selector. Then someone could release a file dialog for other developers to use. On Apr 20, 6:43 pm, stefoid <[EMAIL PROTECTED]> wrote: > Hi, looking at the Android documentaion, it seems you can broadcast an > intent to an official intent reciever, or pass an intent to a specific > activity to handle. > > So far, so good, but it says that intents passed to intent recievers > should handle the request quickly and without any GUI acitvity. So > that leaves the first method - starting an activity by passing it an > intent - as the way > > What about the situation where you want to start an activity to handle > an intent (because it must take a while and use a GUI), but you dont > know specifically which activity should do it? > > An example. One thing that classifies as an activity (or application > in its own right) is a File Selector - something you use to pick a > resource like a photo or a text file or something. It seems > unreasonable for each applciation to duplicte file selection, you > would want the file selection process to appear consistant throughout > every applciation in the phone. i.e. make a request to <something> > capable of file selection. > > How would you go about setting that up? And if you do, is it possible > to replace the file selector with a different application and have the > phone still work OK? > > cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

