Back button unwanted application close

Im expirance a wierd issue

without writing a code to close the app during the back button press , its closes

i have searched through my Project for the ‘Application.Quit()’ and i have not found any instances of that code

any help?

are you used with finish(); System.exit();etc in your code?

ive searched for finish(); and System.exit(); but i havent found any instances of that

could it be a plugin? is there a way to to find which code/class/package exits the application during debug?

did you register you activity in the AndroidManifest.xml correctly?

I suppose you have extended your activity from the UnityPlayerActivity?

I am sure that UnityPlayer.quit() will close this activity and return to the desktop. In my situation, as I opened UnityPlayerActivity from the MainActivity, when I pressed the return button in UnityPlayerActivity, the application will exit to the desktop but my application is still running in the background but minimized.

I am not sure if you are in the same case with me. For the solution, I create a new process for the UnityPlayerActivity, and it works very well. Additionally, you should be careful that as your UnityPlayerActivity is in the different process with other activities, if you want to transfer data between activities, you may use RPC or intent to communicate between the activities.

Hope this will help.

thanks for all the help , i finally found the issue in the manifest

Could you share how you solved it…? i am having the same issue… i modiefied the android manifest myself(with little understanding of what i was doing)… and having this issue