室内Atlas SDK IALocationManager在后台

时间:2016-07-18 17:03:53

标签: android service sdk positioning tracking

执行后台操作以向IALocationManager组件提供定位更新的服务。不要直接调用此服务,而是使用IALocationManager。

此方法由 startServcie(mIntent)调用:

public class IndooTrackingService extends IALocationService implements 
IALocationListener {

private IALocationManager mLocationManager;
mLocationManager.requestLocationUpdates(IALocationRequest.create(), this);
mLocationManager = IALocationManager.create(this);
...

@Override
public void onLocationChanged(IALocation iaLocation) {
    Log.i(tag, "IALocationChange: " + iaLocation);
    final LocationEvent event = new LocationEvent(mMyLocationSource, 
    iaLocation);
    mLocationChannel.publish(mFloorPlanIdLocal, event);
}

}

这是logcat:

Caught a RuntimeException from the binder stub implementation.                                                      
android.os.BadParcelableException: ClassNotFoundException when unmarshalling: 
com.indooratlas.android.sdk.IALocation
...
Class not found when unmarshalling:
com.indooratlas.android.sdk.IALocation                                                         
java.lang.ClassNotFoundException: com.indooratlas.android.sdk.IALocation

0 个答案:

没有答案