I am developing a test application phonegap / jquery-mobile (I am new to these technologies) for Android, and I want to show the image stored on the website inside my application. When the application starts in avd, I get this notification when I put this element in my index.html:
<img src="http://www.comolakeboats.it/images/stories/boats/gommone_12_150x100.jpg" width="120px;" />
Application error - the connection to the server was unsuccessful (file: ///android_asset/www/index.html)
In log.cat, I see this error:
E / DroidGap (337): DroidGap: TIMEOUT ERROR! - call webViewClient
I have already checked the connection both with the browser and inside my application with an external link, and in both cases I can connect to the website.
What am I missing? Is there a solution (maybe the same) suitable for Iphone too?
This is my code:
<body> <div data-role="page" id="home_it"> <div data-role="header" data-theme="a" id="it"> <h1>TEST</h1> <div data-role="navbar" data-iconpos="right" data-theme="a"> <ul> <li><a href="tel://+3933333333">Tel:+3933333333</a></li> <li><a href="mailto: info@test.it ?subject=Info">Email</a></li> </ul> </div> <div class="ui-body ui-body-c"> <p>Some text</p> <button id="my_list_button">Mostra</button> </div> </div> <div data-role="content" class="ui-body"> <ul data-role="listview" id="my_list"> <li data-role="list-divider">My list</li> <li> <a href="http://www.comolakeboats.it" rel="external"> <img src="http://www.comolakeboats.it/images/stories/boats/gommone_12_150x100.jpg" width="120px;" /> <h3>title foo foo</h3> <p style="color:red">foo foo foo foo</p> </a> </li> </ul> </div> <div data-role="footer"> <div data-role="navbar" data-iconpos="right" data-theme="a"> <ul> <li><a href="#home" data-icon="home"> </a></li> <li><a id="exit-app" data-icon="back"> </a></li> </ul> </div> </div> </div> </body>
Thank you in advance
source share