Java Code Examples for android.app.DownloadManager#ACTION_NOTIFICATION_CLICKED
The following examples show how to use
android.app.DownloadManager#ACTION_NOTIFICATION_CLICKED .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DownloadBroadcastReceiver.java From delion with Apache License 2.0 | 6 votes |
@Override public void onReceive(final Context context, Intent intent) { String action = intent.getAction(); switch (action) { case DownloadManager.ACTION_NOTIFICATION_CLICKED: openDownload(context, intent); break; case DownloadNotificationService.ACTION_DOWNLOAD_RESUME: case DownloadNotificationService.ACTION_DOWNLOAD_CANCEL: case DownloadNotificationService.ACTION_DOWNLOAD_PAUSE: performDownloadOperation(context, intent); break; default: break; } }
Example 2
Source File: DownloadBroadcastReceiver.java From AndroidChromium with Apache License 2.0 | 6 votes |
@Override public void onReceive(final Context context, Intent intent) { String action = intent.getAction(); switch (action) { case DownloadManager.ACTION_NOTIFICATION_CLICKED: openDownload(context, intent); break; case DownloadNotificationService.ACTION_DOWNLOAD_RESUME: case DownloadNotificationService.ACTION_DOWNLOAD_CANCEL: case DownloadNotificationService.ACTION_DOWNLOAD_PAUSE: case DownloadNotificationService.ACTION_DOWNLOAD_OPEN: performDownloadOperation(context, intent); break; default: break; } }
Example 3
Source File: DownloadBroadcastReceiver.java From 365browser with Apache License 2.0 | 6 votes |
@Override public void onReceive(final Context context, Intent intent) { String action = intent.getAction(); switch (action) { case DownloadManager.ACTION_NOTIFICATION_CLICKED: openDownload(context, intent); break; case DownloadNotificationService.ACTION_DOWNLOAD_RESUME: case DownloadNotificationService.ACTION_DOWNLOAD_CANCEL: case DownloadNotificationService.ACTION_DOWNLOAD_PAUSE: case DownloadNotificationService.ACTION_DOWNLOAD_OPEN: case DownloadNotificationService.ACTION_DOWNLOAD_UPDATE_SUMMARY_ICON: performDownloadOperation(context, intent); break; default: break; } }
Example 4
Source File: DownloadCompleteReceiver.java From edx-app-android with Apache License 2.0 | 5 votes |
@Override protected void handleReceive(final Context context, final Intent data) { if (data != null && data.getAction() != null) { switch (data.getAction()) { case DownloadManager.ACTION_DOWNLOAD_COMPLETE: handleDownloadCompleteIntent(data); break; case DownloadManager.ACTION_NOTIFICATION_CLICKED: // Open downloads activity environment.getRouter().showDownloads(context); break; } } }