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.

Thanks,
Ramya

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. SecurityException: Permission Denial

I used

 <uses-permission android:name="android.permission.STATUS_BAR" />
 <activity android:name=".xxxx"
        android:permission="android.permission.STATUS_BAR">

When I compile,the error occurred..

[2011-04-29 20:37:30 - xxxx] ActivityManager:
java.lang.SecurityException: Permission Denial: starting Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10000000
cmp=com.xxxx/.xxxx } from null (pid=-1, uid=-1) requires
android.permission.STATUS_BAR

Why!?

-- 

2. fetching the nearest n results from google maps api in android

I am working on an android application on route planning using
googlemaps api. I am currently stuck on a problem where I need the n
nearest locations (along with their distance values from my current
location) as a result (XML, JSON, etc) if I input a place name (not a
specific address) which can have multiple addresses. For instance,

Input: Pizza Joint, 5

Output: XML/JSON Containing the closest 5 results along with their
distances from my current location.

Suggestions Invited. Thanks!

-- 

3. negative(-) morgin recommendation

4. PhysioNet 2011 Challenge: Predicting ECG Signal Quality in an Android

5. Regarding UDF on sqlite

6. cpuinfo_cur_freq and the Android Emulator

7. "java.net.SocketException: The socket level is invalid" when trying to connect using IPV6