2011-05-10 45 views

回答

1

在狀態欄通知...

final NotificationManager mgr = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); 
    Notification note = new Notification(R.drawable.msg,"New Message",System.currentTimeMillis()); 
    PendingIntent i = PendingIntent.getActivity(this, 0, new Intent(this,notification.class), 0); 
    note.setLatestEventInfo(this,"NewMessage","You Receive "+count+" New Message", i); 

    mgr.notify(Notify,note);