I want to get the Text data value from Sub-Activity back. And everything is ok. But when the Sub-activity was opened, then I just click back \"button\" on the phone, it thro
Try putting in some logging into the onActivityResult(...) method of your main activity. The "back" button from the subactivity may be giving you a result code of RESULT_CANCELED, and the intent can be null in that case. So you'll get an NPE at