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
哦,我发现了错误:我打开了另一个活动,该活动位于这些活动之间的活动堆栈中,并导致了问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.