I have an Activity with some buttons,if I click a specific button a new Activity is started which show some images,I want this activity to be opened in a dialog showing the images, select one image and return the image path to the first activity? I have the code for selection of image but how to send image path back to the first acivity? Plz help
Share
set activity theme as
android:Theme.Dialogin menifest .For 2nd doubt: Thats to get Image Path:
frist start second activity by
StartActivityForResult(). Now put path into intent byputExtra(key, value)andfinish(). Now execution will come back toOnActivityResultof Activity 1 . Read your path byGetExtra(key).Read more about it here: http://developer.android.com/reference/android/app/Activity.html