Application Error The Connection To The Server Was Unsuccessful Phonegap
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack the connection to the server was unsuccessful ionic Overflow the company Business Learn more about hiring developers or posting ads with us Stack
Application Error The Connection To The Server Was Unsuccessful Ionic
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community ionic android emulator the connection to the server was unsuccessful of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cordova Connection to server was Unsuccessful up vote 5 down vote favorite The Connection to the server cordova loadurltimeoutvalue was unsuccessful(file:///android-asset/www/index.html) is showing when i run my android application. please let me know how to resolve this issue. android cordova cordova-3 cordova-plugins share|improve this question edited May 7 '14 at 10:15 manukv 1,288721 asked May 7 '14 at 10:00 user3151224 Can you add some code? like the code in your main activity file. is your index file inside assets directory? like : assets/www/index.html –Sanjay D May 7 '14
at 10:10 Possible duplicate of Application Error - The connection to the server was unsuccessful. (file:///android_asset/www/index.html) –Dunc Apr 8 at 15:28 add a comment| 5 Answers 5 active oldest votes up vote 7 down vote This may asked here many times.. This issue can fix by adding a timeout to the webview call (index.html). In your project_name.java class just add this super.setIntegerProperty("loadUrlTimeoutValue", 5000); And in Cordova latest, just use this to timeout super.loadUrl(Config.getStartUrl(), 5000); Also go through these so questions Question1 Question2 UPDATE : One more solution, try this Create a main.html and put your code there, and in your index.html just redirect to main.html script window.location='./main.html'; share|improve this answer edited May 7 '14 at 11:54 answered May 7 '14 at 10:11 manukv 1,288721 manukv thanks for ur answer but it will not work i am still getting the same error after modified my .java class.please let me know any other solution –user3151224 May 7 '14 at 10:41 which cordova version are you using and are you trying to run app in emulator or device?? answer updated pls check it –manukv May 7 '14 at 11:55 Its not worked for me. –shammon Nov 16 '15 at 6:57 add a comment| up vote 3
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of ionic loadurltimeoutvalue this site About Us Learn more about Stack Overflow the company Business Learn android asset file read more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question
Android Asset File Path
x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up http://stackoverflow.com/questions/23514622/cordova-connection-to-server-was-unsuccessful Error “The connection to the server was unsuccessful.” in Cordova and jQuery up vote 0 down vote favorite 1 I created an app for android using Cordova and JQuery mobile. It works well when I test run the code using google chrome, but when I try to run it on android emulator using android studio in cmd (locate>cordova emulate android) it doesn't work. When http://stackoverflow.com/questions/30841817/error-the-connection-to-the-server-was-unsuccessful-in-cordova-and-jquery I try to run it on the emulator I get: "The connection to the server was unsuccessful. (file:///android_asset/www/index.html)" But if I don't use JQuery, it works fine. I didn't modify any code in JQuery or JQuery mobile.
<-- import jquery and codovar --> <-- if i remove this 3 line of code below program is working as same as open with google chrome --> <--end remove here -->