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

Android MediaRecorder Multiple Files
How can I fix errors about imports in this code?
Can tinyXML-1 open files on Android?
Android ActionBarTabsActivity executing next tab's class
Get attr color value based on current set theme
Having light actionbar in 2.3.6, but dark actionbar in 4.4.2
Consume Azure SQL Database with Android?
How to find declaration of string resource in Android project using Eclipse ADT
android how to seprate spanned object in edittext in xmpp?
Making a RelativeLayout fill the screen exactly
Dynamicaly Setting RelativeLayout.LayoutParams.addRule
Android: is possible to Improve my code to download XML from URL?
error while compiling u-boot
data content for listview isn't change from option menu?
How to add column to an active android database table?
How do I map screen coordinates to world coordinates

Categories

HOME
uml
fabricjs
microsoftgraph
cobalt
paraview
forms
swt
alsa
hpc
bing-maps
teechart
spin
fhir
favicon
pybossa
altera
esoteric-languages
wolframalpha
jersey-1.0
google-picker
pimcore
php-mysqlidb
exploit
flask-sqlalchemy
resourcebundle
dynamically-generated
perlbrew
windows-server-2003
definitelytyped
jquery-multiselect
flooding
user-defined-functions
dst
dumpbin
angularjs-material
browser-extension
navigator
python-pptx
swagger-php
openerp-7
alphabetical
imagenet
railstutorial.org
typesafe-config
p4merge
magento-1.9.3
logback-groovy
drupal-theming
signal-strength
x++
jide
linter
netbeans6.8
x-ray
magic-draw
jqchart
branch-prediction
testrail
chromium-os
cubism.js
latin
burrows-wheeler-transform
jquery-jscrollpane
android-wake-lock
data-protection
aspen
atan2
vhosts
gocql
dock
jdk1.7
apache-commons-daemon
osc
java-security
bcache
administration
renderer
cfcache
conditionaltagsupport
bin
notorm
inputmismatchexception
cmmi
octal
preload
pdfviewer
garbage
objectquery
multiplexing
oracle-enterprise-linux
gobject-introspection
denied
saxparseexception
exponentiation
creole
uipagecontrol
codebase
zend-rest
opml
data-mapping
purepdf
web-application-project
windows-identity
scrubyt
flvplayback
pnrp

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