안드로이드 개발 질문/답변
(글 수 45,052)
Notification notif = new Notification(statusBarIconID, "알람이 울립니다",
System.currentTimeMillis());
notif.sound = Uri.withAppendedPath(Audio.Media.INTERNAL_CONTENT_URI,
"6");// ringURI;
notif.vibrate = new long[] { 100, 500};
notif.flags = Notification.FLAG_INSISTENT;
notif.setLatestEventInfo(context, from, message, theappIntent);
notif.ledARGB = Color.GREEN;
NotificationManager nm = (NotificationManager) context
.getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify(1234, notif);
이러한 소스를 사용하여 알람 만드는중인데요
notification bar를 터치하면 무조건 소리랑 진동이 꺼지더군요.
notification bar 터치시에도 소리와 알람 계속 울리게 하는 방법 없을까요?
아예 notificatino bar를 숨기고 전체화면을 만드려고 했는데 어떤 방법을 써도 전체화면이 안되네요.
노티로 하려고 하지마시고 액티비틸를 띄우고 액티비티에서 미디어플레이어로 알람음을 재생하시던가 벨을 울리게 하시야 할것같은데요
대부분의 알람어플들이 액티비티를 띄우눈데요