I\'ve browsed through Stackoverflow and have seen that this question has been asked, but I didn\'t find any solution.
I have a custom notification with 2 buttons. I
Ok I've found the solution. It's not public API, but it works (for the moment):
Object sbservice = c.getSystemService( "statusbar" );
Class> statusbarManager = Class.forName( "android.app.StatusBarManager" );
Method hidesb = statusbarManager.getMethod( "collapse" );
hidesb.invoke( sbservice );
For this to work
is needed