| PhoneGap gets notified whenever a new page is to be loaded. However, | |
| there appears to be a bug in Android that prevents this from happening when | |
| window.location is set. As a result, the new page is loaded in place of the | |
| existing page and PhoneGap doesn't have any way to intercept the request. As a solution, instead of using window.location, use navigator.app.loadUrl("file: | ///android_asset/www/home.html"); |
| Note that you have to include the entire URL, not just relative part. |