// set manager, etra info, the custom view and intent
manager = (NotificationManager) context.getSystemService( Context.NOTIFICATION_SERVICE );
icon = android.R.drawable.stat_sys_upload;
tickerText = "Uploading: " + filename;
flags |= super.FLAG_ONGOING_EVENT;
contentView = new RemoteViews( context.getPackageName(), R.layout.upload );
Intent intent = new Intent( context, this.getClass() );
contentIntent = PendingIntent.getActivity( context, 0, intent, 0 );
// set fields in the custom view
contentView.setImageViewResource( R.id.uploadImage, android.R.drawable.stat_sys_upload );