deprecated method about Notification
<span style="font-size:14px;">Builder mBuilder = new Notification.Builder(this);
mBuilder.setContentTitle("Notification");
mBuilder.setContentText("who do you think you are");
mBuilder.setSmallIcon(R.drawable.ic_launcher);
Notification notification = mBuilder.build();
<span style="white-space:pre"> </span></span>
<span style="font-size:14px;"><span style="white-space:pre"> </span>/*Notification notification = new Notification(R.drawable.ic_launcher,
"here comes the notice", System.currentTimeMillis()); */
</span>
<span style="font-size:14px;"><span style="white-space:pre"> </span>Intent notificationIntent = new Intent(this, MainActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0,
notificationIntent, 0);
notification = mBuilder.setContentIntent(pendingIntent).setContentTitle("ByeBye").setContentText("never see you again").setSmallIcon(R.drawable.ic_launcher).build();
</span>
<span style="font-size:14px;"><span style="white-space:pre"> </span> /*notification.setLatestEventInfo(this, "ByeBye", "never see you again",
pendingIntent); */</span>