Can I use img src="file:///data/data/pkg/files/xxx.png" in the webwiew?

by Philip » Wed, 29 Apr 2009 15:04:23 GMT


Sponsored Links
 Hello,

Because of some specific reason...

My application has make a copy of the img files form the assets folder
to the /data/data/pkg/files/ folder.

(ps. Actually I hope to copy the files to a cache folder, but anyway,
the data folder is fine.)

I need my webview to access the img file form the data folder.

However, I always get file for this execution.

Can any one tell me how to do this?

If anyother suggestion will be appreciate.

Thankx a lot.

Philip Chen


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



Other Threads

1. How to display the current value of an XML ListPreference

This actually isn't an answer to the question.

I wanted to know if there was a way to do this without reimplementing
all the the
work done in addPreferencesFromResource in Java and Layouts.

Android encourages you to use the XML PreferencesScreen framework so that
you don't have to reimplement extensive preference screens in Java. This makes
preference screens retain look and feel between applications.
Furthermore, Android
(or a device manufacturer, particularly if the device is unusual form
factor) can
tweak the look and feel of such screens and such changes would be effective
across most Android applications.

It appears to me, that if you don't want users to have to click-through to see
the current value of a ListPreference, you can't use this wonderful framework.

I'd like to know if I can use the PreferencesScreen for this commonly needed
request. I already knew I could implement it from scratch if I wanted
to, but that
not only seems wasteful, it completely misses the advantages of using
PreferencesScreen in the first place.

P. V. Nasby






> 

2. Traffic, MapView and Europe

Since one week, my application stop to show traffic information on
MapView in Europe.
If I scroll the map to US I can see traffic information.

Does anyone meet the same problem ?

-- 

3. Using IPSec on Android

4. he application Settings(process com.android.settintgs) has stopped unexpectedly."

5. How to display the current value of an XML ListPreference

6. (OOT) Akhirnya ngeflash juga :)

7. HTC: Don鈥檛 put the Nexus One in y our hipster jeans