I make app with the MainActivity and Activity2. I have sent info from MainActivity to Activity2 and Activity2 to MainActivity.
I would like to sent the variable opcio to startActivityForResult but I do not know how. I use this code from MainActivity:
opcio = OPCIO_1;
startActivityForResult(new Intent(getApplicationContext(), Activity2.class), ACTIVITY_NUM);
After from Activity2 I do not know to recovery this info.
Please Could you help me?
Thanks.