Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package tutorial.web;
- import android.app.Activity;
- import android.content.Intent;
- import android.os.Bundle;
- import android.view.View;
- import android.widget.EditText;
- public class WebActivity extends Activity {
- private EditText et1;
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- et1=(EditText)findViewById(R.id.et1);
- }
- public void ejecutar(View view) {
- Intent i = new Intent(this, Actividad2.class );
- i.putExtra("direccion", et1.getText().toString());
- startActivity(i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement