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 8301561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:59:52+00:00 2026-06-08T16:59:52+00:00

While testing appcache issues for an offline WebApp I stumbled over a problem with

  • 0

While testing appcache issues for an offline WebApp I stumbled over a problem with the emulator:
I tried to load a webpage in the WebView. Sometimes it shows perfectly, sometimes it shows nothing.
First I thought it was my fault – overseeing some buggy code i inserted while testing. But that’s not the case.
Instead I believe it’s a bug (or a misconfiguration) of the emulator itself. Because if I call

    myWebView.loadData("<html><body><h1>TEST</h1></body></html>", "text/html", "UTF-8");

and then

    myWebView.loadUrl("http://10.0.2.2:8080/FrontEnd/index.jsp");

the view shows an heading “TEST”, instead the content of the index.jsp. So I added to the index:

    $(alert("Hallo Welt!"));

And now, it shows my expected toast “Hallo Welt!” -> Page was received and somehow processed.
BUT: the display shows not my index.jsp – instead the TEST resides.

Additionally i observed that app-symbols in “All Apps Menu” got cut in half and the lowest row wasn’t shown, too. Perhaps it’s a incompatibility with graphics driver or similarly!?

Is anybody aware of that problem or can give me a hint how to fix that?

  • 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-06-08T16:59:55+00:00Added an answer on June 8, 2026 at 4:59 pm

    And the problem was: reacting on JS-alerts with an Toast:

        myWebView.setWebChromeClient(new WebChromeClient() {
            @Override
            public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
                Logger.getLogger("js-console").log(Level.INFO, "received js-alert!");
                Toast toast = Toast.makeText(view.getContext(), message, Toast.LENGTH_LONG);
                toast.setGravity(Gravity.CENTER, 0, 0);
                toast.show();
                return true;
            }
        });
    

    but NOT calling

        JsResult.confirm();
    

    After adding this line after toast.show(); and before return true; all works like expected… … … …

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

Sidebar

Related Questions

I recently stumbled across this problem while testing my C# program. parsing ) -
While testing my webapp under load I got following top excerpt under Linux: PID
while testing with different version of g++, the following problem came up template<class bra>
i am facing issues while testing with the Test Accunt. i had entered correct
I found some problem while testing my NLP system. I have a java regex
While testing JavaScript code in Firefox 3.5 I sometimes get the following error: Component
While testing a new application, we came across an issue that sometimes a stored
i have a Problem while testing my DAOObject. I have two Entitys which are
I've got a weird problem while testing some code in Groovy Console. The following
I recently tried applying a gradient background to a webpage using only CSS3. while

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.