I have two activities.
First calls second like this:
Intent intent = new Intent(this, Second.class);
startActivityForResult(intent, 1);
returning data in second one:
Intent intent = new Intent();
intent.putExtra("a", "la-la-la");
setResult(RESULT_OK, intent);
finish();
and trying to receive this data in first activity:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if ((resultCode == Activity.RESULT_OK) && (currentTask != null)) {
//Here is empty intent extas!!!
Log.d("OrderActivity", "RESULT!!");
}
}
So, request code and response code returned, but intent extra is empty..??