Jonas Stawski
Jonas Stawski

Reputation: 6752

How should I display a constant notification in Android?

I need to notify the user of my app if the app is connected to the server. If it is, show an online icon, text, etc. somewhere in the app. What is the suggested UI guidelines for this type of notification?

Please note that I don't need help finding out if I'm connected or not, I just need help with the UI guidelines.

Thanks,

Upvotes: 0

Views: 741

Answers (2)

dragodr93
dragodr93

Reputation: 1

just set the ongoing flag to be true like this:

NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(...); nBuilder.setOngoing(true);

Upvotes: 0

Murtuza Kabul
Murtuza Kabul

Reputation: 6524

You do not need a constant notification icon but you actually need a status bar icon.

Go through this doc

http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html

Upvotes: 1

Related Questions