Code example for Service

Methods: stopForeground

0
	    public void showNotification(Service context, int id, Notification n) {
	    	context.startForeground(id, n);
	    } 
 
	    public void hideNotification(Service context, int id) {
	    	context.stopForeground(true);
	    } 
	} 
 
 
} 
Connect your IDE to all the code out there  Get Codota for Java