반응형
AndroidManifest.xml
<
service
android:name
=
".MyService"
android:enabled
=
"true"
>
2.
<
intent-filter
>
3.
<
action
android:name
=
"com.test.SERVICETEST"
>
4.
</
action
></
intent-filter
>
5.
</
service
>
01.
startService(
new
Intent(
this
, MyService.
class
));
stopService(
new
Intent(
this
, MyService.
class
));
반응형
'Programming > Android' 카테고리의 다른 글
Service에서 Activity 실행 (0) | 2013.03.17 |
---|---|
Android 죽지 않는(다시 살아나는) 서비스 (0) | 2013.03.16 |
Android Developer Tools에서 자동안성 기능 사용 방법 (0) | 2013.03.16 |
onStartCommand() return 반환값 (0) | 2013.03.16 |
Android Service lifecycle (0) | 2013.03.16 |