Android getIntent on new activity is NULL when calling activity is destroyed

后端 未结 2 1840
盖世英雄少女心
盖世英雄少女心 2021-01-25 02:42

Do you guys have a workaround for the following problem?

In the onDestroy of a registration activity (when the user presses the back button) I call a new activity so the

2条回答
  •  太阳男子
    2021-01-25 02:56

    Try to put this

     Intent intent = getIntent(); // <-- returns null
        Bundle extras = intent.getExtras();
    

    on "onCreate()" method of new activity

提交回复
热议问题