I have an activity that shows a gridview of items. when I click in any of them, I move to another activity showing the information of the item. I also have the option to go back (gridview activity) or delete it.
If I delete it, I need to refresh the gridview, so I need to send a variable saying "eey, I have deleted an item. you need to refresh".
I guess I need to open the second activity with startActivityForResult, but I don't know how should I set the value.
option 1 (back arrow): finishes the activity. no result back. option 2 (delete item): finishes the activity and sets a result back.
Thanks in advance!