public TemperatureData getDataAndBitmap(float distanceFromApp, boolean needRecordTemAuto, HotImageCallback callBack) {
Log.i(TAG, "+ this.sdf.format(new Date()));
if (!this.isConneted) {
Log.i(TAG, ");
try {
if (callBack != null)
callBack.onTemperatureFail("connect service fail,please restart your app or check the TemperatureService app is installed");
} catch (Exception exception) {}
return null;
}
if (this.devServ != null && this.devServ.asBinder().isBinderAlive())
try {
TemperatureData data = this.devServ.getDataAndBitmapByFix(distanceFromApp, needRecordTemAuto, callBack);
Log.i(TAG, "+ this.sdf.format(new Date()));
return data;
} catch (RemoteException e) {
e.printStackTrace();
}
return null;
}