Android 1.6: onActivityResult is not called

Posted by Seb on Stack Overflow See other posts from Stack Overflow or by Seb
Published on 2010-07-06T14:20:12Z Indexed on 2010/12/23 17:54 UTC
Read the original article Hit count: 237

Filed under:

Hi,

I have a problem with the method "onActivityResult". I create a new Activity from my main activity:

Intent intent = new Intent(this, NewActivity.class);
startActivityForResult(intent, 0);

The new Activity is ended like this:

Intent resultIntent = new Intent();
resultIntent.putExtra("vid", hmvenues.get(venues[currentPosition]));
resultIntent.putExtra("name", venues[currentPosition]);
setResult(RESULT_OK, resultIntent);
finish();

But the Method onActivityResult seem to be not called

@Override 
public void onActivityResult(int requestCode, int resultCode, Intent data) {     
   Log.d(this.getClass().getName(),"onActivityResult");
   ...
}

Does anyone have an idea, what I did wrong? Thanks!! Seb

© Stack Overflow or respective owner

Related posts about android