如何在使用DownloadManager单击通知后在android中打开下载应用程序

如何在使用DownloadManager单击通知后在android中打开下载应用程序,android,android-notifications,android-download-manager,Android,Android Notifications,Android Download Manager,这里我使用DownloadManger下载,它将在通知栏中显示进度 DownloadManager.Request request = new DownloadManager.Request(uri); request.setTitle("Data Download"); //Setting description of request request.setDescription("Android Data downloa

这里我使用DownloadManger下载,它将在通知栏中显示进度

DownloadManager.Request request = new DownloadManager.Request(uri);
            request.setTitle("Data Download");
            //Setting description of request
            request.setDescription("Android Data download using DownloadManager.");
            request.allowScanningByMediaScanner();
            request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);

registerReceiver(downloadReceiver, filter);
广播接收器在下载过程中接收单击操作(DownloadManager.action\u NOTIFICATION\u CLICKED),该操作在下载过程中起作用

private BroadcastReceiver downloadReceiver = new BroadcastReceiver() {

        @Override
        public void onReceive(Context context, Intent intent) {



            String action = intent.getAction();

            if (DownloadManager.ACTION_NOTIFICATION_CLICKED.equals(action))
            {
               startActivity(new Intent(DownloadManager.ACTION_VIEW_DOWNLOADS));
            }


        }
    };
但下载DownloadManager.ACTION\u NOTIFICATION\u单击后无法重定向到下载应用程序。
有人能帮我吗?在点击下载管理器通知(完成下载后)后,我如何重定向到下载应用程序?????

不要忘记在清单
和intent`intent i=new intent(DownloadManager.ACTION\u VIEW\u downloads)中添加intent过滤器;i、 设置标志(意图、标志、活动、新任务);背景。起始触觉(i)`@Muklas下载完成后,单击导航等操作事件是否有效?我已经检查过了,点击它会打开下载,而不是重定向到下载应用。你能帮我解决这个问题吗?蝙蝠侠你找到解决办法了吗?