Web View problem with HTML frame on Android

You must Login before you can answer or comment on any questions.

Hi to all, I have a problem with Web View under Android: when I try to load local HTML files with frames, the View render only the last frame of the frameset, this using the Emulator. On a real Android device (installing the APK), the Web View render correctly the two frame (menu and content), but when I click on a menu item that should load another local file in the "content" frame, only the new frame in rendered in the Web View (obviously the frame link have the correct target). The same HTML is correctly displayed in the built-in Browser of the Android device. Have you any idea?

Thanks!

I use Titanium SDK version 2.1.2 GA, Titanium Studio 2.1.2, Android emulator with Google APIs Android 4.0, and the real Android device is a Samsung Galaxy Tab 10.1" (Android Version 3.2).

1 Answer

First, If the link to the new content is in the href, then it will load the entire page as the new source. You need to make sure the link fires a function to load the page in the right frame. You haven't provided any code, so Im only assuming what the problem is.

Second, using frames in the way that you are using them in modern web development as well as mobile development is a terrible idea. I'd turn my local html into standards based HTML5 and you'll never run across this problem again.

— answered 10 months ago by Anthony Decena
answer permalink
1 Comment
  • Unfortunately the HTML pages are a customer content that I can not modify but only visualize inside the App, but I will try (for test) the modify at the frame as you suggest. Thanks!

    — commented 10 months ago by Sigfrido Corradi

Your Answer

Think you can help? Login to answer this question!