0

I know how to send a notification to the status bar, but when it first starts it takes over the whole status bar and you can't see anything else but your icon. Is there any way to show your icon without it taking over the whole status bar for a few seconds?

Darshan Rivka Whittle
  • 32,989
  • 7
  • 91
  • 109
jolee
  • 3
  • 1

1 Answers1

1

It sounds like you're using an empty tickerText. Just set that to null and the system won't attempt to show it.

Darshan Rivka Whittle
  • 32,989
  • 7
  • 91
  • 109
  • thanks so much. the code i was using was: Notification notification = new Notification(R.drawable.icon, "" , System.currentTimeMillis()); and what was wrong was i had it empty message("") and i should have had null there instead. Thanks a lot it fixed it :) – jolee Jun 22 '12 at 01:18
  • one more thing how can i get rid of System.currentTimeMillis()) in notification when i take it out or put null there it gives me error? – jolee Jun 22 '12 at 01:25
  • @jolee The time is mandatory. That's what the system uses for the timestamp to show the user, and it's how it sorts the icons and notifications. It doesn't make sense to set it to `null`. – Darshan Rivka Whittle Jun 22 '12 at 01:31
  • yea i got rid of the time in status bar anyway but putting in 0 – jolee Jun 22 '12 at 01:33