WebView problems

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

WebView problems

Postby Krechet » Sat Apr 11, 2009 2:52 am

Hey people, i'm trying to load image into WebView, but after all Webview is equal to null.

Source:
wv = (WebView) findViewById(R.id.wv1);
wv.loadData("<img src=\"file://android_asset/icon.png\"></img>123",text/html, UTF-8);

My image is in assets folder. What i'm doing wrong?
Krechet
Freshman
Freshman
 
Posts: 5
Joined: Thu Nov 29, 2007 9:30 pm

Top

Postby Krechet » Tue Apr 21, 2009 5:50 pm

up
Krechet
Freshman
Freshman
 
Posts: 5
Joined: Thu Nov 29, 2007 9:30 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 9 guests