N
N
nikita_chiru2016-12-29 01:59:40
Android
nikita_chiru, 2016-12-29 01:59:40

How to make an application where there will be only a page from the Internet?

There is a site, I want to throw it into the Android application. Made in AS so JS does not want to play. What are the options ? thanks in advance. here is the code

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class Main2Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        WebView myWebView = (WebView) findViewById(R.id.webBrowser);

        WebSettings webSettings = myWebView.getSettings();

        webSettings.setJavaScriptEnabled(true);
        myWebView.setWebViewClient(new WebViewClient());
        myWebView.loadUrl("http:Моя ссылка);
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-12-29
@Rou1997

I already said, the problem is in a specific script, debug JavaScript.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question