Hi, I'm facing an issue when I try to connect to an Access Point with the new Android Q methods. I've asked a question on StackOverflow but nobody has answered me. The problem is that after connectivitymanager.requestNetwork(), if no AP is found and the user clicks on Cancel, the callback's method onUnavailable isn't called. I can't find any way to handle this scenario and I thought that this was a Bug because in the official documentation it is said: "Called if no network is found in the timeout time specified". In my case after the user clicks on cancel the activity is blank and I can't intercept this event in any way.
Description
I've asked a question on StackOverflow but nobody has answered me.
The problem is that after connectivitymanager.requestNetwork(), if no AP is found and the user clicks on Cancel, the callback's method onUnavailable isn't called. I can't find any way to handle this scenario and I thought that this was a Bug because in the official documentation it is said: "Called if no network is found in the timeout time specified".
In my case after the user clicks on cancel the activity is blank and I can't intercept this event in any way.
For further informations, please have a look on this link:
Thanks for your help