• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps HTML links don't work

StevenHu

Member
I created an app in HTML/CSS. It works fine in the iPhone. Now I'm porting it to Android using PhoneGap in Eclipse. I have used this page to get my starting point: phonegap / phonegap-android-eclipse-quickstart When I follow that tutorial and open it in my eLocity, it starts up correctly, opening the index.html as the home page.

My new index.html page, which replaces the one used in tutorial above, is full of normal HTML <a href="1000.html"> links within <li></li> lists which take you to HTML pages elsewhere in the same folder (www) or the next folder (Chapters/1000.html). But when I start it up in my eLocity tablet, the links won't fire. The <li> area just turns blue as they should, but the pages don't change.

Why would an ordinary HTML link not work? I'm not getting any error messages in Eclipse. Here is how the index.html page begins:

HTML:
<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="minimum-scale=1.0, width=device-width, user-scalable=no" name="viewport">
<link href="Chapters/hymns-style.css" rel="stylesheet" type="text/css">
<link href="Chapters/style.css" rel="stylesheet" type="text/css">
<title>Husting Pocket Hymnal</title>
</head>
<body style="background-color:#00aaff">

  <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>      
<!--  <script type="text/javascript" charset="utf-8">
        document.addEventListener("deviceready", function() {
            alert('initialized');
    }, true);
  </script>
-->
<div id="content">

<span class="graytitle">Husting Pocket Hymnal</span>


<ul class="pageitem">

	<li class="menu">
		<span class="name"><a href="Chapters/hymns-a.html">Hymns A</a></span>
    </li>

	<li class="menu">
		<span class="name"><a href="Chapters/hymns-b.html">Hymns B</a></span>
    </li>
 
I am new to android .
i got stuck near

2011-04-19 16:33:35 - secondandroid] Android Launch!
[2011-04-19 16:33:35 - secondandroid] adb is running normally.
[2011-04-19 16:33:35 - secondandroid] Performing org.android.samples.secondapp activity launch
[2011-04-19 16:33:35 - secondandroid] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD2.31'
[2011-04-19 16:33:35 - secondandroid] Uploading secondandroid.apk onto device 'emulator-5554'
[2011-04-19 16:33:35 - secondandroid] Installing secondandroid.apk...
[2011-04-19 16:33:40 - secondandroid] Success!
[2011-04-19 16:33:40 - secondandroid] Starting activity org.android.samples.secondapp on device emulator-5554

it is stuck here
and i think activity manager is not displayed
here
and application not displayed on emulator.It shows home screen.

Can any one help????
thanks

user_online.gif

progress.gif
 
Back
Top Bottom