나는 비슷한 문제에 관해 몇 가지 질문을 읽었지만 해결 방법을 제공하지 않습니다.알림 deleteIntent가 작동하지 않습니다.
내 안드로이드 애플 리케이션에서 알림 (실제로는 C2DM 푸시 이벤트에서 시작되는 특정 Application 클래스)을 시작합니다. 에서
public class NotificationDeleteReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
}
}
: 나는 onReceive 방법을 가지고 내 NotificationDeleteReceiver.class에서
notification.deleteIntent = PendingIntent.getService(this, 0, new Intent(this, NotificationDeleteReceiver.class), 0);
을 :
나는 다음 "모두 지우기"버튼을 알림을 눌렀을 때 인 텐트를 수신 할 내 매니페스트 파일 :
<receiver android:name="NotificationDeleteReceiver">
</receiver>
하지만 여전히 onReceive가 호출되지 않습니다. 나는 무엇을 잘못 할 수 있 었는가? Intent가 실제로 해고되는지 디버그하고 볼 수있는 현명한 방법이 있습니까?
나는 어떤 종류의 의도 필터가 필요합니까, 아니면 괜찮을까요?
팁을 환영합니다.
그리고 인 텐트 필터를 의도에 맞게 설정하는 방법은 무엇입니까 ?? – BamsBamx