안드로이드 개발 질문/답변
(글 수 45,052)
int icon = R.drawable.icon;
String tickerText = "알림";
long when = System.currentTimeMillis();
Notification noti = new Notification(icon, tickerText, when );
noti.sound = Uri.withAppendedPath(Audio.Media.INTERNAL_CONTENT_URI, "6");//ringURI;
Log.v("LEE", "mNotification11");
noti.setLatestEventInfo(Alarm.this,"111", "222", pi);
mNotification.notify(1234, noti); // NOTIFICATION_ID의 고유 ID를 가지는 notification을 표시합니다.
Log.v("LEE", "mNotification22");
return pi;
이부분에서 Alarm 이게 에러가나는데 왜그런건지...ㅠㅠ




위 소스는 Alarm class 내부에 존재하는 소스여야 합니다.