I want to handle when user click the cancel button on the popup dialog.
I did see the "AndroidQ+ could not connect to wifi" log when click the button.
How can I add handler for this event?
networkCallback = new ConnectivityManager.NetworkCallback() {
@Override
public void onAvailable(@NonNull Network network) {
super.onAvailable(network);
wifiLog("AndroidQ+ connected to wifi ");
// bind so all api calls are performed over this new network
connectivityManager.bindProcessToNetwork(network);
}
@Override
public void onUnavailable() {
super.onUnavailable();
wifiLog("AndroidQ+ could not connect to wifi");
}
};
I want to handle when user click the cancel button on the popup dialog. I did see the "AndroidQ+ could not connect to wifi" log when click the button. How can I add handler for this event?