Reputation: 6752
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
Reputation: 1
just set the ongoing flag to be true like this:
NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(...); nBuilder.setOngoing(true);
Upvotes: 0
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