Not connected. Call Connect or wait for onConnected() to be called

后端 未结 2 766
野性不改
野性不改 2020-12-06 13:54

My app is map-centric. I call requestLocationUpdates() often. Once in a while, I get this exception when its called. Or in any other place which ca

2条回答
  •  半阙折子戏
    2020-12-06 14:14

    Try to implement GooglePlayServicesClient.ConnectionCallbacks and @Override onConnected() on your activity and put all the code that needs a connection inside of it.

    That worked for me.

提交回复
热议问题