Android webView shouldOverrideUrlLoading for iframes -


i have local website javascript controlled , loading in webview. website 1 main page iframe content changes based on user input. there "next" button on main page runs javascript functions , decides page load in iframe (via document.getelement(...).src = )

in android 2.1 things working fine - simulated , on phone. webview loading pages properly. tested on 2.2 phone , whenever click next page (that should loaded in iframe) loaded in default browser.

i defined intent filter

   <intent-filter>      <action android:name="android.intent.action.view" />      <category android:name="android.intent.category.default" />      <category android:name="android.intent.category.browsable" />      <data        android:scheme="file"        android:host="*"        android:pathprefix="sdcard/android/data/android.website/files/pages"      />     </intent-filter> 

hoping redirect page requests activity, doesn't work. url still loaded browser.

using shouldoverredeurlloading doesn't work because link loaded 1 of internal frame. tried loading instead javascript code sets url src of iframe, didn't work.

it's weird happens on 2.2 phone. in 2.2 emulator works fine.

any ideas?

try providing own webviewclient webview. should override shouldoverrideurlloading(..) , return false.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -