Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Android app freeze after calling CloseWindow() #3067

Merged
merged 1 commit into from
May 16, 2023
Merged

Fix Android app freeze after calling CloseWindow() #3067

merged 1 commit into from
May 16, 2023

Conversation

Bigfoot71
Copy link
Contributor

@Bigfoot71 Bigfoot71 commented May 15, 2023

Fixed that the Android application was not closed properly after calling CloseWindow() and continued to run.

Edit: I want to clarify the call to exit(0) in android_main. This will not be a problem in normal use of Raylib on Android, only if there are other processes in progress from Java/Kotlin this may in some cases not complete them, hence the precision in the comments, I hope it's pretty clear.

Otherwise, you have to handle closing the application through Java, which can complicate/messy things for the user. So I thought to myself that if a person would be able to tweak the Java code of his Raylib game, he would be able to do the right things to properly close his application.

Fixed that the Android application was not closed properly after calling `CloseWindow()` and continued to run.
@raysan5 raysan5 merged commit 675efbd into raysan5:master May 16, 2023
12 checks passed
@raysan5
Copy link
Owner

raysan5 commented May 16, 2023

@Bigfoot71 Thanks! This is a nice improvement! :D

futureapricot pushed a commit to futureapricot/raylib that referenced this pull request Oct 4, 2023
Fixed that the Android application was not closed properly after calling `CloseWindow()` and continued to run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants