powiadomienie bez zamiaru oczekiwania

Muszę utworzyć powiadomienie, które będzie wyświetlane na górze, ale nie powinno przechodzić do żadnej strony, nie powinno mieć żadnej funkcji onclick.

Oto kod, którego użyłem.

notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
myNotification = new Notification(R.drawable.icon,"Notification!", System.currentTimeMillis());

Context context = getApplicationContext();

String notificationTitle = "Message";
String notificationText = Msg;
Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(myBlog), context, com.gurupro.LiveChat.class);

myIntent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_CLEAR_TOP);




//PendingIntent pendingIntent = PendingIntent.getActivity(Home.this,    0, myIntent, 0);



myIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);

//myIntent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
myNotification.defaults |= Notification.DEFAULT_SOUND;
myNotification.flags |= Notification.FLAG_AUTO_CANCEL;



myNotification.setLatestEventInfo(context, notificationTitle,notificationText, pendingIntent);
notificationManager.notify(MY_NOTIFICATION_ID, myNotification);

Czy ktoś może mi pomóc. @ Dzięki

questionAnswers(1)

yourAnswerToTheQuestion