android - Realm and Runtime.getRuntime().exit(0) -
i have restart app in order refresh app state private reasons. using processpheonix doing well. library calling runtime.getruntime().exit(0);
in order close process , before opening new activities...
the problem...
the thing whenever have realm instance activity , call reboot method, app seems stopped , new activity started blank. tried lot of options seems doing when have realm object instantiated.
is there realm using , should closed or can make work? (i tried closing realm instance before triggering restart , didn't work)
edit:
here sample activity. there superclass of activity3 has realm instance.
yes, realm using native resources need handled properly. that's why requires calling of realm.close()
. able shut down realm instances (all of them!) before rebooting app?
Comments
Post a Comment