Fabio
Fabio

Reputation: 990

Android/PhoneGap debugging: app not updated

I'm trying to use PhoneGap with Android. In the Sample that I run the main app opens an html file:

@Override
public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    super.loadUrl("file:///android_asset/www/index.html");
}

Now if I change something in the html page, Android always shows the previous content. Is it possible that the output files (resources in that case) are not updated?

Also if I change the name of the html file in /assets/newName.html and into .loadUrl nothing changes.

Thank you, F.

Upvotes: 1

Views: 1279

Answers (3)

lsl
lsl

Reputation: 4419

I'm determined to find a proper answer to this, at the moment changes in the assets dir do not trigger a rebuild.

At the moment I'm slapping a new line in the Activity.java code to force a rebild/deploy..

Will update once I've looked for a real solution.

Upvotes: 1

Fabio
Fabio

Reputation: 990

OK Guys found.

The tutorial in the wiki.phonegap.com is obsolete.

Samples instead are updated!

Many thanks.

Upvotes: 0

crazy
crazy

Reputation: 208

I see this sometimes when I add a data file to a project in eclipse.

If you think you pkg isnt being updated (re-built) then just rebuild it manually. If your using eclipse just do project->clean and select the project you want to clean. it'll rebuild automatically and include anything that was missed out.

Upvotes: 0

Related Questions