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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:49:40+00:00 2026-05-18T22:49:40+00:00

I am building an android app and I have a warning that is not

  • 0

I am building an android app and I have a warning that is not causing any problems however, when I see a warning I like to at least know what is causing it. The app uses webview.

Here is the bit if code that is causing the warning.

ImageView viewSplash;
WebView mWebView;
@Override
public void onCreate(Bundle icicle) {

    super.onCreate(icicle);
    setContentView(R.layout.main);

    viewSplash = (ImageView) findViewById(R.id.splash);
    mWebView = (WebView) findViewById(R.id.webview);
    mWebView.getSettings().setJavaScriptEnabled(true);
    mWebView.getSettings().setGeolocationEnabled(true);
    mWebView.loadUrl("http://www.google.com");
    mWebView.setWebViewClient(new WebViewtest(){
        @Override
        public void onPageFinished(WebView View, String url)
        {
            viewSplash.setVisibility(View.GONE);

                }
    });
}

This is the error:

The static field View.GONE should be accessed in a static way.

  • 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-18T22:49:40+00:00Added an answer on May 18, 2026 at 10:49 pm

    Well, I can see one problem which might be relevant. You have a capitalised View as an argument name (see public void onPageFinished(WebView -> View <-, String url)). Uncapitalise this.

    Edit: the problem was the argument name being the wrong caps, and masking the class access with an instance variable access, which is why you got the error. The better fix would be to sort out the capitalisation.

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

Sidebar

Related Questions

I thought I'd have a crack at building an Android app having not done
I am building an Android app that uses wifi. I have properly declared these
I am building an Android app that uses the phone's camera feature. I know
I am building an Android app using phoneGap and I have successfully added the
I'm building an Android app and I need to have two different themes for
I am building an android app, and I want to be able to have
I am building an app for iPhone, android and Blackberry, and I have put
I'm building an Android app, and have set up a base DBObject class to
I'm building an Android app that's reads comments from an MS Power Point file.
I'm building the Android scanning app using zxing library. I have built the zxing

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.