HC05 bluetooth modul lost connection after open other app screen

Hello everyone

I hope someone of you can help me. I control an HC05 Bluetooth module via my smartphone, which then controls a relay via an Arduino.

I use the whole thing because I'm trying to build a cocktail machine out of it.

Unfortunately, the app loses the Bluetooth connection again and again as soon as I have selected a cocktail and a new window in the app with Please wait "Cocktail is being prepared" .

I am now assuming that the problem is related to the app. I edited the app in "With App Inventor".

Under the following link I have given the .aia file of the edited app.

Here is a video of the problem.

welcome to the community...
this is a frequent asked question and you could have found the answer yourself after doing a search in the community... see for example this answer