草庐IT

SnapshotApi

全部标签

android - Awareness.SnapshotApi.getLocation 中的 onResult() 未从服务调用

我正在尝试从后台获取位置Service.问题是onResult()Awareness.SnapshotApi.getLocation(mGoogleApiClient).setResultCallback(newResultCallback()中的函数没有被调用。这里可能出了什么问题?函数onConnected()和onConnectionSuspended()也没有接到电话,但是当我打印出来时mGoogleApiClient.isConnected()=true被退回。所以我试图理解为什么onConnected()也没有被调用。publicclassBlockingServiceex