I have problem with setLatestEventInfo i can't change it to new version . please help me to rewrite new code.
private void showNotification(int moodId, int textId) {
CharSequence text = getText(textId);
Notification notification = new Notification(R.drawable.icon, getText(R.string.notify_message_started), System.currentTimeMillis());
notification.setLatestEventInfo(this, getText(R.string.notify_message_running_headline), getText(R.string.notify_message_running_text),
PendingIntent.getActivity(this, 0, new Intent(this, AudioMonitor.class).setFlags(603979776), 0));
notification.flags |= 2;
this.mNM.notify(MOOD_NOTIFICATIONS, notification);
}
I want can use flag for this line " notification.flags |= 2" in new level api. I am new beginner android