Local Links Do Not Load

  • 1
  • Problem
  • Updated 9 years ago
From my understanding, when phonegap was upgraded to version 1.0 the AndroidManifest.xml file required the activity tag for local links to work. User's can manually enter the update to their AndroidManifest if they are not using the build service. The build service automatically generates this manifest without including the activity tag which makes Test This not work.
Photo of t2birkey

t2birkey

  • 7 Posts
  • 0 Reply Likes
  • sad

Posted 9 years ago

  • 1
Photo of Ryan

Ryan

  • 17 Posts
  • 0 Reply Likes
I've the same problem. I was post here
http://community.phonegap.com/nitobi/...
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
This issue has now been resolved. Please build your application again and it should work.

Hardeep Shoker
Photo of t2birkey

t2birkey

  • 7 Posts
  • 0 Reply Likes
Local links now load but it is very slow. The emulator says "Loading Application.." for 10+ seconds. Now the jquerymobile links are broke which used ajax to load the pages nearly instantly.


<a href="setup.html>Setup Test 1</a> (Works but loads slowly)
<a href=#setup>Setup Test 2</a> (Asset not found)


"Application Error

The requested file was not found. www/ (file:///android_asset/www/#setup)"

Jquerymobile knows if the href is an # link to look for a div with a matching id.
Photo of jay242526

jay242526

  • 4 Posts
  • 0 Reply Likes
I download the latest build "phonegap-phonegap-1.0.0-0-g5b3badc.zip" and still have this problems.
The error message is below:
08-05 17:00:35.074: INFO/System.out(6163): Error loading url into DroidGap - file:///android_asset/www/loanSelect.html:android.content.ActivityNotFoundException: Unable to find explicit activity class {com.phonegap.helloinside/com.phonegap.DroidGap}; have you declared this activity in your AndroidManifest.xml?

Have any idea?
Photo of t2birkey

t2birkey

  • 7 Posts
  • 0 Reply Likes
Still waiting for solution. The recent update to the build service (because of http://community.phonegap.com/nitobi/...) broke jquerymobile ajax links.
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Hey t2birkey,

I will take a look into the issue you have mentioned.

Hardeep Shoker
Photo of Hardeep Shoker

Hardeep Shoker

  • 1941 Posts
  • 89 Reply Likes
Hey t2birkey,

I was able to get hash links to work. Try this code.

https://github.com/hardeep/JqueryMobile

Tested on android emulator and Nexus S.

Hardeep Shoker