android.app.Notification

public Notification(int icon,
                       CharSequence tickerText,
                       long when)

Deprecated. Use Notification.Builder instead.------>使用Notification.Builder()
Constructs a Notification object with the information needed to have a status bar icon without the standard expanded view.

Notification noti = new Notification.Builder(mContext) .setContentTitle("New mail from " + sender.toString()) .setContentText(subject) .setSmallIcon(R.drawable.new_mail) .setLargeIcon(aBitmap) .build();
posted @ 2014-07-04 21:45  lyyh.victory  阅读(238)  评论(0编辑  收藏  举报