This is my problem:
class main extends menuActivity{
//
..
//
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (r
It doesn't matter where you create the intent. If you've used Activity's startActivityForResult()
method, then you'll receive results in onActivityResult()
function.
Finish the activity you are starting for result like this
Bundle b = new Bundle();
b.putString(key, value);
Intent i = getIntent(); //gets the intent that called this intent
i.putExtras(b);
setResult(Activity.RESULT_OK, i);
finish();