Advertisement
jetsky0

WebActivity2

May 24th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package tutorial.web;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5. import android.view.View;
  6. import android.webkit.WebView;
  7.  
  8. public class Clase2 extends Activity {
  9.    
  10.     private WebView webView1;
  11.    
  12.     @Override
  13.     public void onCreate(Bundle b) {
  14.         super.onCreate(b);
  15.         setContentView(R.layout.actividad2);
  16.        
  17.         webView1=(WebView)findViewById(R.id.webView1);
  18.        
  19.         Bundle bundle=getIntent().getExtras();
  20.         webView1.loadUrl("http://"+bundle.getString("direccion"));
  21.     }
  22.    
  23.     public void finalizar(View view) {
  24.         finish();
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement