Hello to all!
I'll warn you right away that in androids I'm not strong. There are 2 devices: one in my hands, the other out of reach, for example on an aircraft model. I need to organize the interaction of these devices: they connect using wi-fi direct and exchange data.
It was possible to organize the connection, but then a problem arose: when a connection was requested, one of the devices issues a window and asks the user about it. Until the user confirms the connection, the window will hang. We need to somehow get rid of this window, but how?