I am invoking the google drive api client's connect() method to start a drive communication from my android app. Now for testing purpose, I put in a breakpoint inside the onConnected method and then after the breakpoint was hit, I intentionally turned off the device wifi.
Now, in these cases, it seems, even though the google drive connection was established, and there was a loss of connectivity, the drive api, just leaves that file upload / download request abruptly.
Is there, a good way to handle / notify the user of connectivity loss, while working with drive api in android?