jessiPP
jessiPP

Reputation: 446

Reference a local file in my phonegap android app

I am trying to reference a local html file in my phonegap android app. I am seeing where something like www/myapp_name/somefile.html does not work, is there a away to do this?

Upvotes: 1

Views: 403

Answers (1)

Niels
Niels

Reputation: 49929

You don't have to add the www. If you structure is as follow

/myprojectname/www/index.html
/myprojectname/www/contact.html

And you wish to make a link from index.html to contact.html you can juse use

<a href="contact.html">contact.html</a>

Just use the relative path. Don't add a / up front.

Upvotes: 3

Related Questions