Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.pochackplayers;
- import android.app.Activity;
- import android.os.Bundle;
- import android.webkit.WebSettings;
- import android.webkit.WebView;
- public class MainActivity extends Activity {
- private WebView mWebView;
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- super.onCreate(savedInstanceState);
- mWebView=new WebView(this);
- setContentView(mWebView);
- mWebView.getSettings().setJavaScriptEnabled(true);
- mWebView.addJavascriptInterface(new JavaScriptInterface(), "jsinterface");
- mWebView.loadUrl("http://192.168.43.190/nudo.html");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement