Code example for Notification.Builder

Methods: setContentText, setContentTitle, setOngoing, setProgress, setSmallIcon

0
		return mBuilder;
	} 
	 
	private Builder NotificationUploadPrepare(String text){
		 
		Builder mBuilder = new Builder(this);
		 
		/* Setup Notification Manager Begin */ 
		mBuilder.setContentTitle("Download from dCache server");
		mBuilder.setContentText(text);
		mBuilder.setSmallIcon(android.R.drawable.ic_menu_upload);
		mBuilder.setOngoing(true);
		mBuilder.setProgress(100, 0, false);
		/* Setup Notification Manager End */ 
		 
		return mBuilder;
	} 
	 
	@SuppressWarnings("deprecation") 
	private void NotificationNotify(String tag, Builder mBuilder) {
		if (android.os.Build.VERSION.SDK_INT < 11) {