SHARE
TWEET

Untitled

a guest Mar 17th, 2014 202 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.example.pochackplayers;
  2.  
  3.  
  4. import android.app.Activity;
  5. import android.os.Bundle;
  6. import android.webkit.WebSettings;
  7. import android.webkit.WebView;
  8.  
  9. public class MainActivity extends Activity {
  10.  
  11.        
  12.         private WebView mWebView;
  13.  
  14.         public void onCreate(Bundle savedInstanceState) {
  15.                 super.onCreate(savedInstanceState);
  16.                 setContentView(R.layout.activity_main);
  17.                
  18.  
  19.  
  20.                     super.onCreate(savedInstanceState);
  21.                    
  22.                    
  23.                     mWebView=new WebView(this);
  24.                     setContentView(mWebView);
  25.                     mWebView.getSettings().setJavaScriptEnabled(true);
  26.                     mWebView.addJavascriptInterface(new JavaScriptInterface(), "jsinterface");
  27.                    
  28.                     mWebView.loadUrl("http://192.168.43.190/nudo.html");
  29.  
  30.         }
  31.  
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top