나는이 나는 사용자가이 같은 특정 알림 액션을 탭하면 실행하고자하는 PendingIntent에 싸서 IntentService :알림 작업에 의해 실행 된 IntentService는 어떤 스레드에서 실행됩니까?
Intent actionIntentService = new Intent(context, ActionIntentService.class);
PendingIntent actionPendingIntent = PendingIntent.getService(app, getNotificationId(), actionIntentService, PendingIntent.FLAG_CANCEL_CURRENT);
그때 만들어 내 알림이 보류 목적으로 액션을 추가해야합니다
notificationBuilder.addAction(R.drawable.ic_notif_action, actionTitle, actionPendingIntent);
내 질문은, m의
onHandleIntent(Intent intent)
에있어서, 상기 NotificationCompat.Builder를 통해 y IntentService가 호출되어 스레드가 실행됩니까?
내 코드를 디버깅했으며이 메서드 호출이 주 스레드에서 실행된다는 인상을줍니다. 그렇다면 배경 스레드에서 실행되도록하려면 어떻게해야합니까?
편집 :
내 ActionIntentService이 IntentService
class ActionIntentService extends IntentService
IntentService가 기본 UI 스레드 (즉, 요점)가 실행되지 않음 – Booger