Code example for DownloadManager.Query

Methods: setFilterById, setFilterByStatus

		DownloadManager dm = (DownloadManager) ctx.getSystemService(Context.DOWNLOAD_SERVICE);
		Query query = new Query();
		query.setFilterById( downloadKey );
		query.setFilterByStatus( DownloadManager.STATUS_SUCCESSFUL );
		Cursor cursor = dm.query(query);
		if ( cursor.moveToNext() ){
			Log.d(TAG, "Clicked download successful completed.");
			Log.d(TAG, "clicking on a download that is not complete. Just let us have patience ...");
Stop searching for code, let great code find you!  Add Codota to your java IDE