Back to project page Metascan-Online.
The source code is released under:
Apache License
If you think the Android project Metascan-Online listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.opswat.metascan; // w ww. j a v a 2 s .co m import android.app.DownloadManager; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; public class DownloadListener extends BroadcastReceiver{ private static final String TAG = "MainActivity.java"; @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub Log.v(TAG, "Download detected"); String action = intent.getAction(); if (DownloadManager.ACTION_DOWNLOAD_COMPLETE.equals(action)) { Log.v(TAG, intent.getStringExtra(DownloadManager.COLUMN_URI)); } } }