[Q] App assistance if possible -

ImageView imageview = (ImageView)findViewById(R.id.image1);
imageview.setImageResource(imageIDs[position]);
String imageUrl = "file:///local/dir/page_1"; // http://example.com/image.jpg
WebView wv = (WebView) findViewById(R.id.yourwebview);
wv.getSettings().setBuiltInZoomControls(true);
wv.loadUrl(imageUrl);

That's part of my code.....

when i run this, on the emulator, the app runs but when i click on the icon to view the image via webview. it force closes. what am i doing not correctly.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by ibrahim.lockman
1 hour ago
Last post by dcarter
39 minutes ago
Last post by germaine46
4 hours ago
Last post by jena00
1 hour ago
Last post by efadel
2 hours ago
Last post by millie11
2 hours ago
Last post by imcglynn
4 hours ago
Last post by ariel.pfeffer
58 minutes ago
Last post by leo.kiehn
1 hour ago
Last post by cabbott
38 minutes ago
Last post by noemie05
18 minutes ago
Last post by dstreich
2 hours ago