Hello everyone and have a nice day!
I wrote an application that determines my location and sends data to the database. When you minimize the application on the On Pause On Stop life cycles, I wrote a method that also forces the application to determine its location and send them to the database. There are no problems, I checked everything through the logs. How correct it is or not is another question. So, the application opens in OnCreate , there is a button that, when pressed, starts the cycle and makes the button invisible, but if you minimize and expand the application, the button is visible. Why???