Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6652523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:08:58+00:00 2026-05-26T01:08:58+00:00

I have a website/web app built with jquery mobile that I am trying to

  • 0

I have a website/web app built with jquery mobile that I am trying to package into a webview for android; I am able to load up the pages locally by putting the whole site into the assets folder and loading the url like so:

mWebView.loadUrl("file:///android_asset/www/btec/index.html");

One of the pages is a gallery/slideshow of images that flips through automatically using javascript. However, if I navigate to my gallery from index.html, the images dont load. If I load it directly (i.e. load it directly into the webview with:

mWebView.loadUrl("file:///android_asset/www/btec/gallery.html");

the images appear and scroll no problem! I’m not sure why this is happening. Is there a setting I need to enable/disable? I have the following settings enabled already:

mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setAllowFileAccess(true);
mWebView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
mWebView.getSettings().setLoadsImagesAutomatically(true);
mWebView.getSettings().setPluginsEnabled(true);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:08:58+00:00Added an answer on May 26, 2026 at 1:08 am

    This a trick that probably solves your problem.

    1) Create a WebViewClient class, overriding shouldOverrideUrlLoading method:

    private class MyClient extends WebViewClient {
        private WebView mwv;
    
        public MyClient(WebView v) {
            mwv = v;
        }
    
        @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            if(url.equals("file:///android_asset/www/btec/gallery.html")) {
                mwv.loadUrl(url);
                return true;
            }
            return false;
        }
    }
    

    2) Associate this client to your webview:

    mWebView.setWebViewClient(new MyClient(mWebView));
    

    Probably not the best way; but I think it works… 😉

    EDIT: for other details, you can see this: http://developer.android.com/reference/android/webkit/WebViewClient.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are you able to use titanium to build a mobile web app, such that
I have a mobile web application built using the following versions :- JQuery Mobile
I have a Silverlight web app which uses ASP.net Website administration tool for user
I have a website that talks to a remote WCF web service. Both use
I have a website that uses basic ASP.Net forms authentication. In the web.config file
I have a asp.net website and I am accessing that web service from my
I currently have an asp.net website hosted on two web servers that sit behind
I have an application built that hits a third party company's web service in
We have a web site built as an 'ASP.NET Website' type project, rather than
I have a web app of which I would like to create a mobile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.