I need to create a notification that will be displayed at the top, but should not go to any page, there should not be any onclick function.
here is the code i used.
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);
Can someone help me. @thanks
user2134412
source share