navigator.app.loadUrl("file:///android_asset/www/home.html");
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
<?xml version="1.0" encoding="utf-8"?>
<phonegap>
<access origin="http://127.0.0.1*"/>
<access origin="http://192.168.0.104*"/>
<log level="DEBUG"/>
</phonegap>
<script type="text/javascript">
document.addEventListener("deviceready", app.mainLaunch, false);
</script>
<script src="http://10.0.0.104/target/target-script-min.js#anonymous"></script>
mainLaunch: function() {
if (!device || !this.launched) {return;}
this.views.viewport = new this.views.Viewport();
}
if (!device || !this.launched) {return;}
<?xml version="1.0" encoding="utf-8"?>
<phonegap>
<access origin="http://127.0.0.1*"/>
<access origin="http://10.0.0.104*"/>
<log level="DEBUG"/>
</phonegap>
04-13 18:16:28.259: E/Web Console(21504): Uncaught ReferenceError: device is not defined at file:///android_asset/www/app/app.js:8
I am adding this here as I am sure it has something to do with this topic.