String ns = Context. NOTIFICATION_SERVICE; NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns); int icon = R.drawable. Icon; CharSequence tickerText = "Notification Receive"; long when = System.
CurrentTimeMillis(); Notification notification = new Notification(icon, tickerText, when); Context context1 = context; //***************** final int CUSTOM_VIEW_ID = 1; RemoteViews contentView = new RemoteViews(getPackageName(), R.layout. Custom_notification_layout); contentView. SetImageViewResource(R.id.
Image, R.drawable. Icon); contentView. SetTextViewText(R.id.
Text, "Racquetime \n"+msg); notification. ContentView = contentView; notification. Defaults=Notification.
FLAG_ONLY_ALERT_ONCE+Notification. FLAG_AUTO_CANCEL; Intent notificationIntent; if(GUIStatics. BoolLoginStatus) { notificationIntent = new Intent(this,ShowAllNotificationActiviry.
Class); } else{ notificationIntent = new Intent(this, HomeActivity. Class); } notification. Flags |= Notification.
FLAG_AUTO_CANCEL; notification. Defaults |= Notification. DEFAULT_SOUND; notification.
Flags |= Notification. FLAG_SHOW_LIGHTS; notificationIntent. PutExtra("Tag", "C2DMBaseReceiver"); PendingIntent contentIntent = PendingIntent.
GetActivity(this, 0, notificationIntent, 0); notification. ContentIntent = contentIntent; mNotificationManager. Notify(CUSTOM_VIEW_ID, notification) I am using this code for showing notification on notification bar you can change it according to your requirement.
I hope this is help.
String ns = Context. NOTIFICATION_SERVICE; NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns); int icon = R.drawable. Icon; CharSequence tickerText = "Notification Receive"; long when = System.
CurrentTimeMillis(); Notification notification = new Notification(icon, tickerText, when); Context context1 = context; //***************** final int CUSTOM_VIEW_ID = 1; RemoteViews contentView = new RemoteViews(getPackageName(), R.layout. Custom_notification_layout); contentView. SetImageViewResource(R.id.
Image, R.drawable. Icon); contentView. SetTextViewText(R.id.
Text, "Racquetime \n"+msg); notification. ContentView = contentView; notification. Defaults=Notification.
FLAG_ONLY_ALERT_ONCE+Notification. FLAG_AUTO_CANCEL; Intent notificationIntent; if(GUIStatics. BoolLoginStatus) { notificationIntent = new Intent(this,ShowAllNotificationActiviry.
Class); } else{ notificationIntent = new Intent(this, HomeActivity. Class); } notification. Flags |= Notification.
FLAG_AUTO_CANCEL; notification. Defaults |= Notification. DEFAULT_SOUND; notification.
Flags |= Notification. FLAG_SHOW_LIGHTS; notificationIntent. PutExtra("Tag", "C2DMBaseReceiver"); PendingIntent contentIntent = PendingIntent.
GetActivity(this, 0, notificationIntent, 0); notification. ContentIntent = contentIntent; mNotificationManager. Notify(CUSTOM_VIEW_ID, notification); I am using this code for showing notification on notification bar you can change it according to your requirement.
I hope this is help.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.