android – Closing app from recents does not clear memory data-ThrowExceptions

Exception or error:

I am running Instrumentation tests.
Part of my tests require that the app be closed from recents and check what happens when the app is reopened.

However, variables stored in memory prior to clearing the app from recents do not get reset after the app is reopened.

Why is that?

The variables are booleans stored strictly in memory

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *