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. ProgressBar setMax(int) defaulting to 100

I actually found the answer to this issue as I was about to post, but
I will post anyway to help anyone that might encounter this issue.
DO NOT set any progress or secondary progress amounts in the XML file
for the progress bar, this apparently prevents you from setting the
Max programmatically later.

I hope this helps.


2. How to reuse preferences inflation mechanism?

Hi all,

I wonder if it is possible to reuse Android preferences mechanism for an app.

For the App preferences I of course use PreferencesActivity, but I
need similar functionality for preferences of a business entity,
otherwise it's a hassle to layout every single element manually. So I
would like to reuse the UI and the inflation from XML, but use my own

This is an example of what i want to have in my layout:



3. what extact tags for official releases

4. Message passing between two Android applications

5. Multiple - multiple choice dialogs/activities, questionnaire, one question at the time

6. How to create "All Day Event" using the Calendar Content Provider?

7. Gallery Application in Eclair / 2.1 problems (Intents)