Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I force expand android notification on android 4.1+? [closed]

I wonder if I could force expand my notification which have 2 buttons, because I don't think users will find them if they are not expanded.

Poweramp seems achieved that, anyone please help me. thx in advance.

enter image description here

like image 539
thecr0w Avatar asked Dec 27 '13 09:12

thecr0w


1 Answers

As far as I know, the first notification in the notification tray is always presented with the expanded view by default (if a BigView is defined for the notification).

So, what you could do is increase the priority of your notification so that it becomes the first notification in the tray, and that way, it will always be expanded by default.

mNotification.priority = Notification.PRIORITY_MAX;

like image 53
Swayam Avatar answered Oct 19 '22 01:10

Swayam