• 23-09-2018, 18:41:41
    #1
    merhabalar basitce yaptığım webview uygulamamda sanıyorsam android güncellemesinden veya sürümden dolayı önceden pdf ve doc uzantıları indiriyordu simdi indirmiyor. bu gün acilen düzeltmem lazım acaba yardımcı olacak birisi var mı? cüzi bir miktarda ayırabilirim
  • 24-10-2018, 10:29:43
    #2
    mWebView.setDownloadListener(new DownloadListener() {
        public void onDownloadStart(String url, String userAgent,
                String contentDisposition, String mimetype,
                long contentLength) {
                    Request request = new Request( Uri.parse(url));
                    request.allowScanningByMediaScanner();
                    request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
                    request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "myPDFfile.pdf"); 
                    DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
                    dm.enqueue(request);        
       }
    });
    bu kodları denediniz mi

    StackOverflow'da buna bezer konular mevcut
  • 24-10-2018, 19:29:44
    #3
    ergin_ersoy adlı üyeden alıntı: mesajı görüntüle
    mWebView.setDownloadListener(new DownloadListener() {
        public void onDownloadStart(String url, String userAgent,
                String contentDisposition, String mimetype,
                long contentLength) {
                    Request request = new Request( Uri.parse(url));
                    request.allowScanningByMediaScanner();
                    request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
                    request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "myPDFfile.pdf"); 
                    DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
                    dm.enqueue(request);        
       }
    });
    bu kodları denediniz mi

    StackOverflow'da buna bezer konular mevcut
    sorun çözüldü. ilginiz için teşekkürler