Notice
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
Tags
- 설치
- html5
- chart.js
- android 효과음
- WebView
- 폼메일
- roundcube
- 안드로이드 푸시
- php 취약점
- php 시큐어코딩
- 자동 생성
- C# IO
- 자바스크립트
- 안드로이드
- xe
- FCM
- 우분투
- javascript
- mysql
- UML
- curl
- 안드로이드 푸쉬
- soundpool
- Android
- PHP
- dovecot
- 안드로이드 gcm
- not working
- C#
- Mail Server
Archives
- Today
- Total
목록stopservice nullpointerexception (1)
그러냐
안드로이드 stopservice nullpointerexception
서비스는 죽어도 다시 살아나기 때문에 어플을 강제종료시킨후 다시 실행시킬 때 중복실행방지를 해준다if(!isServiceRunningCheck()) { cintent = new Intent(this, EmgService.class); startService(cintent); } 그래서 내가 띄운 서비스가 떠 있을때만 종료를 시킨다if(isServiceRunningCheck()) { stopService(cintent); } 그러다보니 어플을 강제 종료시킬 경우 기존 서비스를 실행했던 변수데이터 cintent 가 날아가서 서비스는 떠 있어서 stopService(cintent) 는 타게 되는데 정작 cintent는 null이 들어가버린다. 그래서 널 익셉션이 발생된다 그냥 인자값없이 stopService(..
android
2017. 6. 21. 21:07