서비스 추가시, AndroidManifest에 하기와 같이 android:process 속성을 추가한다.
그러면 해당 서비스는 application내의 activity와 async하게 동작하며, 실행 시에도
pid가 다름을 관찰할 수 있다.
<service
android:process="com.test.servicetest.btservice"
android:name=".BluetoothResetService" />
'android' 카테고리의 다른 글
Build error : X (java:sdk) should not link to Y (java:platform) (0) | 2019.09.18 |
---|---|
alert dialog 생성 시, 주의 (0) | 2019.09.02 |
Android audio tutorial (link) (0) | 2019.08.27 |
android service exported true의 의미. (0) | 2019.08.01 |
BroadcastQueue: Background execution not allowed: receiving Intent (0) | 2019.07.30 |