Use polling if PhoneGap app is loaded from server, since XHR doesn't work to localhost due to cross-domain security policy.

This commit is contained in:
Bryce Curtis
2010-11-10 14:19:17 -06:00
parent 912458c679
commit 10f3313ed5
2 changed files with 38 additions and 15 deletions
+3
View File
@@ -300,6 +300,9 @@ public class DroidGap extends PhonegapActivity {
else {
this.baseUrl = this.url;
}
// Initialize callback server
this.callbackServer.init(url);
this.runOnUiThread(new Runnable() {
public void run() {