I have an activity which calls another activity with dialog theme. There are some buttons. User press one of the buttons and this activity destoys - then main activity gets the focus. In the onResume() method of main activity i can find out that the dialog activity is closed. But how can i receive data from this dialog activity - define which button was pressed?
Asked
Active
Viewed 74 times
0
-
check this ans https://stackoverflow.com/questions/10407159/how-to-manage-startactivityforresult-on-android – KuLdip PaTel Sep 05 '17 at 11:34
-
are you navigating to one activity to another ? – Rohit Singh Sep 05 '17 at 11:38
-
KuLdip PaTel, thanks a lot! I allways thought that onActivityResult is called only after recreation of activity. Now i understand that it can be also called even when activity resumes! – anmig Sep 05 '17 at 12:17