2011-12-20 2 views

답변

1

"setLatestEventInfo"- 메서드를 찾고 있습니다. 그것은 내 응용 프로그램에서 다음과 같습니다

보시다시피
Intent msgIntent = new Intent(this, ExampleClass.class); 

     PendingIntent nManagerStart = PendingIntent.getActivity(this, 0, 
       msgIntent, 0); 

     msg.flags |= (Notification.FLAG_AUTO_CANCEL); 

msg.setLatestEventInfo(this, contentTitle, contentText, nManagerStart); 

     notificationManager.notify(NOTIFY_ID, msg); 

은, 하나는 통지에 pendingIntent를 추가 할 수 있습니다.

다음은 알림 관리자 용 가이드입니다. http://developer.android.com/guide/topics/ui/notifiers/notifications.html