assets referenced in HTML

by miketra » Mon, 02 May 2011 07:12:52 GMT

Sponsored Links
 I have an app that includes HTML files in the assets folder. I am able
to load the initial HTML page successfully under all conditions using
the following command in code:


Now, within start_page.htm, I have a bunch of links that can be
clicked, and each link references another HTML file that I have
included in the assets folder.

For some strange reason, all the links load fine on my Droid (2.2.2),
but none of the links load on a Droid X (2.2.1). The links are setup
like this on my Droid inside of start_page.htm:

<a href="page2.htm">Page 2</a>

The above works on the Droid, but not on Droid X. I then tried the

<a href="file:///android_asset/page2.htm">Page 2</a>

This also does not work on Droid X, but works fine otherwise. Does
anyone know why this may be? On the emulator running 2.2.1, it works
fine. I'm not sure what else to try, and I'm not sure what the problem
could be.




Other Threads

1. Why launch is canceled in android

[2010-04-05 11:43:21 - Notepadv2] ------------------------------
[2010-04-05 11:43:21 - Notepadv2] Android Launch!
[2010-04-05 11:43:21 - Notepadv2] adb is running normally.
[2010-04-05 11:43:21 - Notepadv2] Performing activity launch
[2010-04-05 11:43:21 - Notepadv2] Automatic Target Mode: launching new
emulator with compatible AVD 'SecondTarget'
[2010-04-05 11:43:21 - Notepadv2] Launching a new emulator with
Virtual Device 'SecondTarget'
[2010-04-05 11:43:31 - Notepadv2] New emulator found: emulator-5554
[2010-04-05 11:43:31 - Notepadv2] Waiting for HOME
('android.process.acore') to be launched...
[2010-04-05 11:44:19 - Notepadv2] WARNING: Application does not
specify an API level requirement!
[2010-04-05 11:44:19 - Notepadv2] Device API version is 7 (Android
[2010-04-05 11:44:19 - Notepadv2] HOME is up on device 'emulator-5554'
[2010-04-05 11:44:19 - Notepadv2] Uploading Notepadv2.apk onto device
[2010-04-05 11:44:26 - Notepadv2] Failed to upload Notepadv2.apk on
device 'emulator-5554'
[2010-04-05 11:44:26 - Notepadv2] Unable to
upload file: timeout
[2010-04-05 11:44:26 - Notepadv2] Launch canceled!


2. Problem in SSL Socket write


I have a problem in SSLSocket write method.

My Application sending some data in the range of 2k to 160k to my
I am using SSLSocket for communication between my device and my

While I am executing the application in WIFI enabled state, it is
working fine.

While i am executing the application in EDGE network state, actually
it is sending the data..but later some time

after sending some amount of data, the application hung up in the
write method call even the EDGE is stable.

Please any help.


3. Oot: WTA gmail lemot?

4. spica ganti os

5. Reference hardware info

6. Kartu unlimited yg Bagu

7. How to Launch Contact application displaying multiple phone numbers?