problem with web view

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Oct 18, 2017 9:24:12 PM via Website

Hi, i try to build android app based on webview with this code in MainActivity.java :

import android.content.res.Configuration;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class MainActivity extends AppCompatActivity {
private WebView myWebView;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
getSupportActionBar(). setDisplayShowHomeEnabled(true);
getSupportActionBar(). setLogo(R.mipmap.ic_launcher);
getSupportActionBar(). setDisplayUseLogoEnabled(true);
setContentView(R.layout.activity_main);
setContentView(R.layout.activity_main);
myWebView = (WebView)findViewById(R.id.webView);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
myWebView.loadUrl("admin does not allow me to write a link");
myWebView.setWebViewClient(new WebViewClient());
myWebView.setWebViewClient(new MyAppWebViewClient());

Configuration config = getResources().getConfiguration();

}
@Override
public void onBackPressed() {
if(myWebView.canGoBack()) {
myWebView.goBack();
} else {
super.onBackPressed();
}
}

and everything works well except Revolution Slider ( at the top of the site) from which only a gray rectangle is visible. Please, if someone has a similar problem or knows his decision, let him write! Thanks!