I need to test network recovery scenarios, and would like to programmatically force the API to
-
"pause" and "resume", such that NotificationListener.onUserPaused and .onUserResumed are called
-
"lose connectivity" such that ConnectionRequestListener.onConnectDone can be called with the various result codes.
#1 is more important than #2, because it seems that there are always connectivity issues with the service anyway that I can test against.