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. Dynamic SetId on a XML Layout

Hi,

for my own clarity i've created a "node" xml with a button and two
text view.

Every button has a static id in the xml layout, but i add the node
dymanically in the code with an Inflate and an AddView on a
LinearLayout.

Now.

I'd like to change the button id so that it turn into an incremental
id:
"android:id = id/myname_1"
"android:id = id/myname_2"
"android:id = id/myname_2"
.
.
.
android:id = id/myname_N"

Is there a way to do that?

I mean, i could set the id with the setId() itself, after grabbing the
object, but what happens if the id clashes?

Thanks a lot and bye.

-- 

2. NFC : detect TAG once inside the application

OK here is my problem.

I created an application where I need to detect TAGs. So I created an
activity and I registered an intent receiver to it :

<activity android:name="LoadTagActivity" android:theme="@android:style/
Theme.Dialog" >
                <intent-filter>
                <action
android:name="android.nfc.action.TAG_DISCOVERED"/>
                <category
android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
</activity>


It works perfectly.

Now the thing is. Once I detect the tag it goes in my application. But
once I'm in the application I can't detect tags anymore. The intent
TAG_DISCOVERED seems to be correctly broadcasted but my activity
doesnt seem to pick it up. ( And yes the Activity has previously been
destroyed correctly ).

Anyone can help me ? or is just normal behaviour ?

-- 

3. ADT plugin installation error

4. i need real time video streaming sample code

5. Error trap webview.loadUrl

6. [Help] Unable to send command to the emulator

7. Help Merging Text Into Video