1. If you are using the ACTION_GET_CONTENT with mime type as image, it will display all the images on your phone. 2. For getting notified, you should be using startActivityForResult instead of just startActivity
On Nov 8, 3:21 pm, SupaGu <[email protected]> wrote: > so im making a wallpaper and i want the user to select a folder. So i > have a button in the preferences that launches an intent to open an > image, but what i want is actually just a directory (i guess in the > worst case i can strip the filename from the end). so thats my first > problem. > > the second problem is how do i get notified of when the intent is > complete? > > public class FilePreference extends DialogPreference implements > View.OnClickListener > { > > public void onClick(View v) > { > // open up a gallery/file browser > Intent intent = new Intent(); > intent.setType("image/*"); > intent.setAction(Intent.ACTION_GET_CONTENT); > getContext().startActivity(Intent.createChooser(intent, "Select > Folder")); > } -- 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

