android - how to close default gallery programattically? -


i using code

    intent photopickerintent = new intent(intent.action_pick,android.provider.mediastore.images.media.external_content_uri);     photopickerintent.settype("image/*");     photopickerintent.setaction(intent.action_get_content);     photopickerintent.addcategory(intent.category_openable);     photopickerintent.putextra(intent.extra_local_only, true);     startactivityforresult(intent.createchooser(photopickerintent, "image file picker"), 1000); 

to pick image sdcard within application.

this working fine, according requirement need close action_pick chooseractivity myself, when touch outside dialog closed fine...

but how can close type of dialog programatically..

anyone pls give me suggestion......

you can't.

that chooser separate activity, launched intent (which launch activity via intent when user selects something).

you don't control chooser, not in app.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -