code: def disconnect(cls):
          
          app = AndroidApplication.instance()
          f = app.create_future()
  
          def on_permission_result(result):
              if not result:
                  f.set_result(None)
                  return
  
              def on_ready(mgr):
                  mgr.disconnect().then(f.set_result)
  
              #: Get the service
              WifiManager.get().then(on_ready)
  
          #: Request permissions
          WifiManager.request_permission([
              WifiManager.PERMISSION_CHANGE_WIFI_STATE
          ]).then(on_permission_result)
  
          return f
docs: Disconnect from the current network (if connected).
           
           Returns
           --------
               result: future
                   A future that resolves to true if the disconnect was 
                   successful. Will be set to None if the change network 
                   permission is denied.