Not able to comment, android developers please read! WebView display : since i don't have the 50 rep required to comment -.- stupid idea...

This is my first app development so please bare with me on this ^^.

ill simply have to ask this question here again, it's topic related to this: https://stackoverflow.com/questions/14423981/android-webview-display-only-some-part-of-website/14424866#14424866

and it's about this code that is written there: 

    public class MyWebClient extends WebViewClient {

    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
    view.loadUrl(url);
    return true;
    }
    
    @Override
    public void onPageFinished(WebView view, String url) {
    view.loadUrl("javascript:your javascript");
    }
    }
    .........
    final MyWebClient myWebViewClient = new MyWebClient();
    mWebView.setWebViewClient(myWebViewClient);

Im having difficulties running this code even after modified like this: 

    public class MyWebClient extends WebViewClient {
    
    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
    webView.loadUrl("http://tid.mspot.nu");
    return true;
    }
    
    @Override
    public void onPageFinished(WebView view, String url) {
    view.loadUrl("document.getElementsByClassName('white').style.visibility = 'hidden'");
    }
    }
    
    final MyWebClient myWebViewClient = new MyWebClient();
    mWebView.setWebViewClient(myWebViewClient);

> error: class, interface, or enum expected

> error: class, interface, or enum expected

Since im not a java developer this gets a bit confused (mainly working with PHP) and some parts im totally familiar with.

Here is my currently working code: 

    import android.annotation.TargetApi;
    import android.net.http.SslError;
    import android.os.Build;
    import android.os.Bundle;
    import android.support.v7.app.AppCompatActivity;
    import android.view.KeyEvent;
    import android.webkit.SslErrorHandler;
    import android.webkit.WebResourceRequest;
    import android.webkit.WebView;
    import android.webkit.WebViewClient;
    
    public class MainActivity extends AppCompatActivity {
    
    private WebView webView;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    
    webView = (WebView)findViewById(R.id.webView);
    
    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setDomStorageEnabled(true);
    webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
    webView.setVerticalScrollBarEnabled(false);
    webView.setHorizontalScrollBarEnabled(false);
    webView.getSettings().setUseWideViewPort(true);
    
    webView.setWebViewClient(new WebViewClient() {
    @Override
    public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
    handler.proceed();// super.onReceivedSslError(view, handler, error);
    }
    @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
    return false;
    }
    
    @TargetApi(Build.VERSION_CODES.N)
    @Override
    public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
    return false;
    }
    });
    webView.loadUrl("http://tid.mspot.nu");
    }
    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
    if (event.getAction() == KeyEvent.ACTION_DOWN) {
    switch (keyCode) {
    case KeyEvent.KEYCODE_BACK:
    if (webView.canGoBack()) {
    webView.goBack();
    } else {
    finish();
    }
    return true;
    }
    
    }
    return super.onKeyDown(keyCode, event);
    }
    }

and i would love to be able to implement that feature of hiding this "btn_white" class i know it's supposed to be an id which ill change right now. This is just a button to download the app that i wan't to hide in the app, makes sense i suppose ^^

would love to have some help with this since it's my first time developing anything for android. Thanks! 
