开发者

Android/PhoneGap debugging: app not updated

开发者 https://www.devze.com 2023-04-02 05:18 出处:网络
I\'m trying to use PhoneGap with Android. In the Sample that I run the main app opens an html file: @Override

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开发者_JAVA百科 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.


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.


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.


OK Guys found.

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

Samples instead are updated!

Many thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号