Android Webview href not working -


i using following code in webview along jquery mobile, works fine in emulator (2.2 ) , on nexus 1 users complaining when click on link error message "problem file: requested file not found". 1 user reported using samsung fascinate "2.2.1" . seems have started when upgraded jquery mobile 1.0b2 , have tried latest 1.0rc still have same issue

any insights on might happening ?

in activity

engine.loadurl("file:///android_asset/book2/www/newindex.html"); 

in html ( have tried data-ajax="false" )

    <link rel="stylesheet" href="jquery/jquery.mobile-1.0rc1.min.css" />      <script type="text/javascript" src="jquery/jquery.mobile-1.0rc1.min.js"></script>       <div data-role="page" id="jqm-home">     <div data-role="content" data-theme="e">            <div class="content-primary">        <nav>                  <ul data-role="listview" data-inset="true" data-theme="e" data-dividertheme="d" >     <li data-role="list-divider">cognitive</li>          <li><a rel="external" href="./cogn/simon2.html">             <img src="cogn/simon.jpg" />             <h3>simon says</h3>             <p>memory</p>         </a></li> 

from know url loading, if loading local file, looks here, file needs in same directory file linking from. because file local on computer, device , emulator should work fine. else downloads app , tries use webview functionality, source file need stored in phone , in appropriate directory...hope helps.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -