// 노티피케이션 매니저 생성 NotificationManager mNotifier = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
Notification mNotify = new Notification(); mNotify.icon = 아이콘 리소스 ID; mNotify.tickerText = "안녕하세요~"; // 표시할 메시지 mNotify.when = System.currentTimeMillis(); // 작동 시간 설정 mNotify.sound = SoundUri; // 사운드 Uri 지정 mNotify.flags |= Notification.FLAG_AUTO_CANCEL;
// 노티피케이션 매니저 생성
NotificationManager mNotifier = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
Notification mNotify = new Notification();
mNotify.icon = 아이콘 리소스 ID;
mNotify.tickerText = "안녕하세요~"; // 표시할 메시지
mNotify.when = System.currentTimeMillis(); // 작동 시간 설정
mNotify.sound = SoundUri; // 사운드 Uri 지정
mNotify.flags |= Notification.FLAG_AUTO_CANCEL;
mNotify.setLatestEventInfo(
getApplicationContext(),
"표시할 메시지(큰 글씨)",
"표시할 메시지(작은 글씨)",
PendingIntent);
// 최종 노티피케이션 띄우기
mNotifier.notify(1000, mNotify);
---
막 적은거라 오류가 날 수도.. ^^