I want to sent intent from one first activity to another.
The first activity sends an intent to the second activity in order to create a new AlertDialog, receive a n
in onActivityResult you are not suppposed to call
intent = getIntent();
directly you have got the
protected void onActivityResult(int requestCode, int resultCode, Intent data)
where data corresponds to the data sent from the alert box activity. Just directly calling
data.getIntExtra("data2", -1);
should do. Hope I was clear enough.