c# - Back button doesn't dispose App / MainActivity -


neither application class nor mainactivity getting disposed when click button on android phone.

my problem:

i cannot figure out if app closed or pausing. in both cases

protected override void onsleep() {} 

is being called.

but front after pressing back-button, mainactivity & forms application reinstantiated again , whole app appears restart. whereas tapping buttom middle button minimize , bringing front again doesnt restart app , still running , open...

my question:

the problem now, have application , activity in memory, doesnt use anymore. never getting disposed, far can see.

further more don't want app restart when click button, how solve issue? act if have used minimize button in middle. possible?

from can tell, design. when on root (main) page, , press home button, app goes background, main page still instantiated , in memory. in contrast, when hit button, app removes main page navigation stack, destroying it. therefore, app need re-initialize mainpage (navigationpage), in order operate.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -