How to restart app in the android studio emulator without recovering state?

-2

I created a login screen and implemented authentication. If there is a user logged in, the main screen is displayed, if not, the login screen is displayed. After I logged in to test Android Studio it saved the state in the emulator, so it will no longer go to the login screen. What can I do to reset this? Any ideas?

    
asked by anonymous 23.06.2018 / 03:38

1 answer

1

Open VMD (Virtual Device Manager) and select Cold Boot Now in the Actions column of your device.

In termial you can do this:

$ emulator -avd Nome_Do_Dispositivo -no-snapshot-load -no-snapshot

Removing the .idea folder from your application folder should also resolve.

    
23.06.2018 / 04:10