0

I want to show a notification icon on the status bar with text not on notification drawer (like GPS icon). Currently I am using following code:

NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(CallReportAppApplication.getInstance().getApplicationContext())
        .setSmallIcon(R.drawable.ic_bell)
        .setTicker("Test");
notificationManager.notify(1, mBuilder.build());
Manfred Radlwimmer
  • 13,257
  • 13
  • 53
  • 62
Rahul Wadhai
  • 413
  • 1
  • 4
  • 9

0 Answers0