Alarm을 공부하고 있는중이에요//
켜진화면에서 notification으로 알람정보 확인하는 것은 잘 되는데.. 꺼진화면에서 weke_up이 안되네요?
// 메인페이지부분에서 리시버 호출
Intent intent = new Intent(getApplicationContext(), alarmReceiver.class);
PendingIntent sender = PendingIntent.getBroadcast(alarmTest.this, 0, intent, 0);
mManager.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()+1000, 0, sender);
// 호출된 리시버 클래스에서 브로드캐스트리시버 상속받아서 onReceive 내용
Intent contentIntent = new Intent(context, notifiPage.class);
PendingIntent theappIntent = PendingIntent.getActivity(context, 0, contentIntent, PendingIntent.FLAG_UPDATE_CURRENT);
CharSequence from = "알람";
CharSequence message = "일어나라고?";
Notification notif = new Notification(statusBarIconID, null, System.currentTimeMillis());
notif.sound = Uri.withAppendedPath(Audio.Media.INTERNAL_CONTENT_URI, "6");
notif.flags = Notification.FLAG_AUTO_CANCEL;
notif.setLatestEventInfo(context, from, message, theappIntent);
NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify(1234, notif);
어떻게 해야하는 것일까요??
카카오톡이나 기본 탑재되어있는 알람처럼 메시지나 다른 Page를 열고 싶은데 일단 wake_up이 안되네요 ㅠ




자답 : flag 값 주는걸로 해결했네요
getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
serarch 기술 좀 부족해서 좀 걸릿네요 ㅎㅎ 아무튼 해결해결.. success