Handle data from several activities in one onActivityResult()?
问题 I wonder if it's possible to handle data from e.g. activity 2 and activity 3 in activity 1 that have one onActivityResult() , or do I need to have one method for each activity that return data? Activity 1 is the main activity for the application. Activity 1: // Handle return value from activity protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == Activity.RESULT_OK) { String imageId = data.getExtras().getString("imageId"); // Do something if data