mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
mShowText = "메세지.";
public void showNotification() {
// In this sample, we'll use the same text for the ticker and the expanded notification
CharSequence text = mShowText;
// Set the icon, scrolling text and timestamp
Notification notification = new Notification(R.drawable.abc_btn_check_to_on_mtrl_000, text, System.currentTimeMillis());
// The PendingIntent to launch our activity if the user selects this notification
PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
new Intent(this, MainActivity.class), 0);
// Set the info for the views that show in the notification panel.
notification.setLatestEventInfo(this, mShowText, text, contentIntent);
// Send the notification.
mNM.notify(R.drawable.abc_btn_check_to_on_mtrl_000, notification);
}