2011-05-10 58 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);