Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guy's
i have more PDF files in folder for use into my app , and displayed them in a listview with onklickListener for open each file(pdf)
but when get file path from listview item and go to next activity for displayed in web view send this error :
E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)

for sample when click on listview item get this path :
storage/emulated/0/data/user/ir.rahgoshafan.sample/crytoech.pdf


What I have tried:

this my code :
Java
web_id = (WebView) findViewById(R.id.web_id);
        WebSettings settings = web_id.getSettings();
        settings.setJavaScriptEnabled(true);
        settings.setBuiltInZoomControls(true);
        web_id.setWebChromeClient(new WebChromeClient());
        web_id.loadUrl(Uri.parse(filePathFromListViewItem) + "#zoom=page-width");
Posted
Comments
David Crow 16-Apr-18 8:45am    
So have you stepped through the code to see where that error is coming from?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900