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
Realm instances never close onDestroy #5069
Comments
is FirstActivity.onDestroy() ever called? |
Yeah I always Log it and onDestroy() is called everytime |
Isn't |
|
Sorry for the delay. I should have used more activities as an example. |
There are a few things to clear up here.
Hope some of that helps a bit! |
You can also try to enable "Don't keep Activities" in the Developer settings. This should definitely kill the activity as soon as it is moved in the background. |
I don't think this is true. Anyways, I'd need to see the example project that reproduces this in order to find what's wrong with it, the provided sample is insufficient. |
What @Zhuinden said. We would need a full working example project to be able to debug this further. |
close due to no response. |
Goal
Close current Realm instance of the current activity when this activity gets destroyed.
Expected Results
I followed Realm documentation on how to manage instances lifecycles but still no success.
Actual Results
Steps & Code to Reproduce
Code Sample
Version of Realm and tooling
Realm version(s): 3.3.2
Realm sync feature enabled: no
Android Studio version: 2.4.6 preview 6/7 and 2.3.3
Which Android version and device: From 5.0 to 7.0
The text was updated successfully, but these errors were encountered: