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);
}
2021-10-28 18:57:22
8.31MB
计步器
1