loadDataWithBaseUrl() problem

by Ramya » Sat, 19 Sep 2009 02:00:14 GMT

Sponsored Links
 Hello all,

I have been working on Android for past few months and recently
started an application that involves WebView. I have a project where I
have a main url from which I need to parse a part of the data and
display it in WebView and I use loadDataWithBaseUrl() for the same.
like : mWebView.loadDataWithBaseURL("file:///android_asset/", data,
"text/html", "utf-8", "about:blank");

I have the image files in the asset folder and for now I can get the
data and image displayed. The data has html content in the same but
without <html><body> tags. Right now I can get the links working with
D-pad but not with touch. I tried it both on the device and the
emulator and still get the touch to work. When I touch the link, it
gets highlighted but doesn't get clicked. I do remember if I use
loadUrl() and give the main url, the touch works. But in my case I
need to show only part of the file each time. Has any one come across
this problem. It would be nice if someone can me help me through it.



Other Threads

1. Get all text (including encoded) from XML Text Node


I have a very basic question regarding encoded text in an XML Text node.

I am using the DOM parser
to parse some xml. The xml has some international characters which are encoded 
in decimal unicode - eg. '' is '&#243;'.

The parser takes the encoded character out of the word for example jbb and the 
Text node is left with jbb as the node value. If I use getData() on the Text 
node it returns jbb also. The character is not lost though - a sibling Node, an 
Entity Reference Node, has the decimal value and an index. The index value 
corresponds to where this character should be inserted. In this case for 
example if would have an index of 1 and value of '#234'.

This indicates that there must be a simple way of accessing the value of the 
Text node of its parent in such a way as to get 'jbb'. It seems unlikely that 
I need to reconstruct this by doing a lookup to convert the encoded character 
to utf8 and then insert it into the string for the Text node. Does anyone know 
how this works?

Sorry for asking what is probably a really basic question, but I can't find the 

Thank you for any help.



2. Yahoo Mail & Yahoo messenger has been updated to 1.01

As subject sudah updates ya,

Atau gua yang ketinggalan berita ya?


"Indonesian Android Community [id-android]" 

3. How to remove a HeaderView from a ListView?

4. screen resolution 800x480

5. why is there no android tablet nearly as good as ipad?

6. Market Search Not Displaying All the Results

7. Auto Scrolling Text in Canvas