上传者: lemisky
|
上传时间: 2021-10-28 18:57:22
|
文件大小: 8.31MB
|
文件类型: -
Android Studio3.0直接运行调试
public void onServiceConnected(ComponentName name, IBinder service) {
//Activity和Service通过aidl进行通信
iSportStepInterface = ISportStepInterface.Stub.asInterface(service);
try {
mStepSum = iSportStepInterface.getCurrentTimeSportStep();
updateStepCount();
} catch (RemoteException e) {
e.printStackTrace();
}
mDelayHandler.sendEmptyMessageDelayed(REFRESH_STEP_WHAT, TIME_INTERVAL_REFRESH);
}