it is not allowed to bind a Service from within a BroadcastReceiver.
So, You have to use startService()! not bindService()
* http://stackoverflow.com/questions/18931670/binding-service-by-broadcastreceiver
it is not allowed to bind a Service from within a BroadcastReceiver.
So, You have to use startService()! not bindService()
* http://stackoverflow.com/questions/18931670/binding-service-by-broadcastreceiver
PhoneStateListener
- Callback Method onCallSateChanged
전화 통화 상태 변경시 호출되는 콜백메소드
- Callback Method onServiceStateChanged
전화 서비스 상태가 변경시 호출되는 콜백 메소드
onReceive 에서 Activity 호출시
Intent를 사용할때는 Method 파라미터로 전달된 intent를 사용하지 말고 새로 선언해서 사용합니다.
그리고 Intent 옵션에 “Intent.FLAG_ACTIVITY_NEW_TASK”를 꼭 포함하여야지 오류가 발생하지 않습니다.
* http://daddycat.blogspot.kr/2011/05/android-broadcastreceiver-event-catch.html
* http://arabiannight.tistory.com/entry/%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9CAndroid-Service-%EC%82%AC%EC%9A%A9%EB%B2%95
wrong code
for (BookDataBean book : bookList) {
if (TextUtils.isEmpty(book.getItemId())) {
bookList.remove(book);
}
}
right code
for (Iterator<BookDataBean> bookIter = bookList.iterator(); bookIter.hasNext(); ) {
BookDataBean book = bookIter.next();
if (TextUtils.isEmpty(book.getItemId())) {
bookIter.remove();
}
}
* http://stackoverflow.com/questions/3184883/concurrentmodificationexception-for-arraylist
* http://egloos.zum.com/iilii/v/5350490
* http://dura.lookskorea.com/bbs/board.php?bo_table=mms_edu&wr_id=1&page=22