Code example for Notification.Builder

0
	public int onStartCommand(Intent intent, int flags, int startId) {
		UpdateTaskCallback callback = new UpdateTaskCallback() {
 
			public void callback(Bitmap image) {
 
				Builder build = new Builder(TumblrUpdaterService.this)
						.setContentTitle("New tumblr update")
						.setContentText("text")
						.setSmallIcon(android.R.drawable.alert_dark_frame)
						.setLargeIcon(BitmapFactory.decodeResource(getResources(), android.R.drawable.btn_minus));
 
				Notification notification = new Notification.BigPictureStyle(
						build).bigPicture(image).build();
				 
				NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
				notificationManager.notify(1337, notification);
			} 
		}; 
		UpdateTask updater = new UpdateTask("", callback);
		updater.execute();
		return START_STICKY;