protected void carInterfaceStop() { try { mCarInterface.deviceClose(); } catch (Exception ex) { Log.e(TAG, "ERROR STOPPING CAR INTERFACE", ex); } updateNotification(); }
@Override public void onDestroy() { watchdog_TimerStop(); unregisterReceiver(mUsbDetachedReceiver); if (mCarInterface != null) { mCarInterface.deviceClose(); mCarInterface = null; } mNoticeManager.cancelAll(); }