Android: Comment puis-je mettre ma notification en haut de la zone de notification?

Je suis en train de mettre ma notification sur le dessus de la zone de notification.

Une solution est de mettre le paramètre "quand" à mon objet de notification avec un temps futur comme:

notification.when = System.currentTimeMills()*2; 

Le code que j'utilise:

        long timeNotification = System.currentTimeMillis()*2;
        Notification notification = new Notification(statusIcon,c.getResources().getString(R.string.app_name),timeNotification);
        notification.flags = Notification.FLAG_ONGOING_EVENT | Notification.FLAG_NO_CLEAR;
        notification.when = timeNotification;
        notification.priority = Notification.PRIORITY_MAX;

mais certaines applications (comme Facebook) sont en mesure de mettre un simple notification de son temps sur les miennes.

Si je me rafraîchir la notification qu'il reste dans ces.

Quels paramètres je dois mettre pour mettre mon Notification vers le haut de la zone de notifications?

source d'informationauteur Meroelyth