Code example for Service

Methods: startForeground

0
		private static class Holder { 
	            private static final EclairAndBeyond sInstance = new EclairAndBeyond();
	    } 
 
	    public void showNotification(Service context, int id, Notification n) {
	    	context.startForeground(id, n);
	    } 
 
	    public void hideNotification(Service context, int id) {
	    	context.stopForeground(true);
	    } 
	} 
 
 
}