android


phonegap: Timeout error calling webviewclient


I'm trying to debug my phonegap app. When I try to open my app on my emulator I get an error saying The connection to the server was unsuccessful. (file:///android_asset/www/index.html)
I should mention that I'm using phonegap build, so I don't have any native code. The weird thing is that I'm only loading local resources, so I don't get why I'm getting a timeout. My index.html looks like this:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" />
<title>Mængderabat - spar mere</title>
<script src="http://debug.phonegap.com/target/target-script-min.js#maengderabat"></script>
<script src="phonegap.js" charset="utf-8"></script>
<script src="assets/js/jquery-1.5.2.min.js"></script>
<script src="assets/js/jquery.mobile.js"></script>
<script src="assets/js/jquery.jfeed.pack.js"></script>
<link rel="stylesheet" href="assets/css/jquery.mobile.css" />
<style>
.ui-li-icon{width:16px;height:16px;}
</style>
</head>
<body >
<!-- begin first page -->
<section id="main" data-role="page" data-theme="b">
<header data-role="header">
<h1>Mængderabat - spar mere</h1>
</header>
<div data-role="content" class="content">
<ul id="list" data-role="listview" data-inset="true">
</ul>
</div>
<footer data-role="footer">
<h2>example by Oikos Development</h2>
</footer>
</section>
<!-- end first page -->
</body>
</html>
Increase the timeout in your main (phonegap) activity:
setIntegerProperty("loadUrlTimeoutValue", 30000);
I'm not super familiar with PhoneGap build but is your path to jQuery correct? I'd think it would be js/jquery* if there is a js folder in your www folder.
Also, you are loading a remote resource from debug.phonegap.com. Possibly that is slowing you down.

Related Links

Localization Support in Android
Android Fragment not inflating after transaction
Issue compiling Vulkan API samples on Android N
Firebase 401 unauthorized error FCM
When click button inside fragment I want to go to another fragment in the parent TabLayout
Android 6 - phone crashes when bluetooth device found
Firebase: notify app uers when data in a json file changes
How to Clear Database in Realm in Android
AdColony UI is messed up on Galaxy S6 (using Unity 5 & HeyZap)
How do I scale up/enlarge RecyclerView items only when they are the most centered and shrink them when user swipes away
Youtube player getting paused in every second which is inside View Pager
Android Smack receiving the message but not processing it using processMessage()
why can a service create a webview?
480*800 resolution Xamarin Android
FirebaseDatabase.getInstance().getReference() takes too long.
Make an alert dialog popup from a class that is not an activity? [duplicate]

Categories

HOME
go
embedded
scikit-learn
twitter-bootstrap-3
design-patterns
character-encoding
youtube-data-api-v3
hessian
graphics
error-handling
gradient
tail
data-visualization
crystal-lang
bing-maps
extjs4.2
ibeacon-android
android-securityexception
ipmitool
onedrive-api
symmetricds
enterprise-architect
capistrano3
html5-appcache
foreign-keys
systemtime
roslyn
php-mysqlidb
mongoid6
data.stackexchange.com
google-cloud-print
motion-detection
angularjs-components
fractions
inversion-of-control
user-defined-functions
autodesk-designautomation
send
mustache
record
jmockit
carriage-return
salesforce-communities
filesystemwatcher
bc
health-monitoring
azure-arm
vmware-fusion
dcmtk
claims
apollostack
file-sharing
importerror
ovf
proget
pair-programming
tinkerpop
opengl-4
envi
expectations
eigenvector
jclouds
appscale
ellucian-scribe
concept-insights
themoviedb-api
r-package
ons-api
zscript
uncompress
dronekit-android
j-security-check
cakephp-2.7
exceldatareader
rapidsvn
mruby
cbind
jama
kissfft
synapse
ora-06550
script#
neos-server
jquery-1.9
font-awesome-4.0.0
pagedown
insert-id
joomla3.1
qtconcurrent
isa-swizzling
cross-database
relative
uipagecontrol
django-paypal
timertask
opml
django-piston
localizable.strings
technical-debt

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App