onActivityResult sometimes not called when Sub-Activity finishes
问题 During testing I noticed that sometimes the finish() of my sub-activity doesn't execute onActivityResult. Most of the times it works okay, and I can't figure out, when and why this problem occurs. Subactivity start: public void launchSubActivity(Class<? extends Activity> subActivityClass, Bundle data, OnSubActivityResult callback) { Intent i = new Intent(this, subActivityClass); if(data!=null) i.putExtras(data); Random rand = new Random(); int correlationId = rand.nextInt(); _callbackMap.put