0
에서 그것을어떻게 .. 여기 내 코드는 매일 여기 오전 11:00시 매일 올 것이다 내 안드로이드 응용 프로그램의 지역 알림을 설정하려면 11시
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.HOUR_OF_DAY, 14);
calendar.set(Calendar.MINUTE, 45);
calendar.set(Calendar.SECOND, 0);
Intent intent1 = new Intent(this, AlarmBroadcastReceiver.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 1234, intent1, PendingIntent.FLAG_UPDATE_CURRENT);
AlarmManager am = (AlarmManager) this.getSystemService(this.ALARM_SERVICE);
am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, pendingIntent);
을 매일에 대한 현지 통지를하지 설정 스피가 사용하는 경우 .. 예고 ..
을 보여주는 통지보다
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 1234, intent1, PendingIntent.FLAG_UPDATE_CURRENT);
내가 내 Avtivity을 열 때마다 온다.
그리고 로컬 알림을 표시하는 다른 방법이 있다면 좋은 예를 들어주세요. `AlarmBroadcastReceiver`는`BroadcastReceiver`되어 있는지 확인하려면
OS 모바일 주식의 사용자 정의 OS.ie LE 에코 및 MIUI etc.Test에 통지 .Ex의 우선 순위, 당신은 사용해야합니다 'getBroadcast()'. 또한 즉시 알람이 울리면 이미 지나친 시간 동안 알람이 설정되었음을 의미합니다. 당신은 그것을 확인하고, 그렇다면 하루를 추가해야합니다. http://stackoverflow.com/a/36536228 Btw, 14:45는 오전 11 시가 아닙니다. –
마이크 도움 덕분에 M, 내 문제가 해결되었습니다. –