처음에 앱에서 USB(serial 통신을 위한) 를 꽂았을 때 정상적으로 작동을 하지만
USB가 꽂혀 있는 상태에서 앱을 나갔다가 재실행 할 때 반응이 없고 앱이 팅기면서 먹통이 됩니다..
이유를 알 수 있을까용..? ㅠㅠ 아무리 검색해도 잘 모르겠습니다..
@Override
public void onResume() {
super.onResume();
setFilters(); // Start listening notifications from UsbService
startService(UsbService.class, usbConnection, null); // Start UsbService(if it was not started before) and Bind it
deleteStatusBar();
}
@Override
public void onPause() {
super.onPause();
unregisterReceiver(mUsbReceiver);
unbindService(usbConnection);
}
Resume 부분과 Pause 부분입니다..
홈 키를 누르고 앱 기록을 없앴다가 다시 앱을 실행시키면 오류가 뜨는 것 같습니다