How do you keep the debugger from dying when your app is put on background? Every time I change the active app and wait a few seconds without bringing it back, the debugger accuses lost connection to the device
.
This is true either with a custom project or with a recently created project.
Question posted in Android Studio
The official documentation can be found here.
The official documentation can be found here.
2
Answers
it happens because the device doesn’t have enough ram to keep the debug app open, you can test my answer by using a device having large ram of 4GB or more
I would suggest you to use an simulator for android or ios. Then you can tab out and tap in. Then it still has the app open even for longer times.