When I return back to my Activity onCreate is raised instead of onActivityResult?

后端 未结 2 660
遇见更好的自我
遇见更好的自我 2020-12-22 02:13

I have an Activity that opens a new Activity for result like this:

Intent i = new Intent(ActDocument.this, ActCustomers.class);
startActivityForResult(i, Act         


        
相关标签:
2条回答
  • 2020-12-22 02:18

    Perhaps the back button doesn't finish the Acivity. So, override onBackPressed.

    0 讨论(0)
  • 2020-12-22 02:26

    most of the time Back button will finish the activity unless you specific override the

    OnBackPressed()

    I think your problem is lack of resources, or maybe you have some developer options like kill activty flag or limit background process check this.

    Update

    Go to setting-> developer options unchecked don't keep activities and background process limit set to standard limit.

    0 讨论(0)
提交回复
热议问题