I have been developing an android application in which I need to set a persistent notification, which never goes away from the status bar. All things are setup properly, but I need to use full background in the notification without any text or anything. As I have attached a screenshot.
I have used the following code:
String notificationTitle = "Here My App Name Goes";
String notificationMessage = "Search with ---------";
Intent targetIntent = new Intent(Intent.ACTION_MAIN);
targetIntent.setClassName(this, this.getClass().getName());
int requestCode = AppSingleton.NOTIFICATION_ID_ALWAYS;
PendingIntent contentIntent = PendingIntent.getActivity(this,
requestCode, targetIntent, 0);
String statusBarTickerText = "Search from ----------";
int icon = R.drawable.ic_launcher;
Notification notification = new Notification(icon,
statusBarTickerText, System.currentTimeMillis());
notification.flags = Notification.FLAG_ONGOING_EVENT
| Notification.FLAG_NO_CLEAR;
notification.setLatestEventInfo(this, notificationTitle,
notificationMessage, contentIntent);
nm.notify(AppSingleton.NOTIFICATION_ID_ALWAYS, notification);
I can set my app icon and write some text over it, but I need to set full background as it is the screenshot provided.
Please help me getting out of this prm.