Code example for DownloadManager

Methods: remove

0
		}); 
 
		cancel.setOnClickListener(new View.OnClickListener() {
 
			public void onClick(View v) {
				manager.remove(reference);
			} 
		}); 
	} 
 
	BroadcastReceiver receiver = new BroadcastReceiver() {
 
		@Override 
		public void onReceive(Context context, Intent intent) { 
			long refCompleted = intent.getLongExtra( 
					DownloadManager.EXTRA_DOWNLOAD_ID, -1); 
			if (refCompleted == reference) { 
				// downloading completed 
				// Toast.makeText(getApplicationContext(), 
				// "Downloading Completed!", Toast.LENGTH_LONG).show();