여기에 로컬 알림을 받기 위해 알람 관리자를 사용하고 있습니다. 내 코드는 완벽하게 실행되며 모든 알람 및 알림은 적시에 이루어집니다. 하지만 알림을 클릭하면 앱에 Act_Remainder
클래스가 있어야합니다. 이 문제를 해결하는 방법은 무엇입니까?알람 관리자 (알림)와 보류중인 의도
Intent intent1 = newIntent(this.getApplicationContext(), Act_Remainder.class);
if(intent!=null){
userID = intent.getStringExtra("UserID");
userID1 = intent.getStringExtra("UserID1");
ID = intent.getIntExtra("ID", 0);
}
Notification notification = new Notification(R.drawable.ioc_icon,
userID1, System.currentTimeMillis());
intent1.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingNotificationIntent = PendingIntent.getActivity(this.getApplicationContext(), 0, intent1, PendingIntent.FLAG_ONE_SHOT);
notification.flags |= Notification.FLAG_AUTO_CANCEL;
내 질문을 편집하기위한 모든 사람에게 Thannx가 있지만이 문제를 해결하는 데 도움을 줄 수있는 사람이 있습니까? ????????? – krishna
replending PendingIntent.FLAG_ONE_SHOT to PendingIntent.FLAG_UPDATE_CURRENT –
@Lucky 나는 이것을 시도했지만 알 수없는 시간에 빈 알림 하나를 보냈습니다. 1 시간 30 분 후 ...이 시간은 결정되지 않았습니다. – krishna