Guest User

Untitled

a guest
Mar 17th, 2014
217
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×