SHOW:
|
|
- or go back to the newest paste.
| 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 Actividad2 extends Activity {
|
| 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 | } |