package com.tid.robotium; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.widget.EditText; public class EjemploRobotiumActivity extends Activity { public EditText text; private static final String TID_TAG = "TID_TAG"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); text=(EditText) findViewById(R.id.edittext); text.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { Log.d(TID_TAG, "tocado texto:"+event.toString()); return false; } }); } public void clickBtn1(View target) { Log.d(TID_TAG,"clickado boton1"); } public void clickBtn2(View target) { Log.d(TID_TAG,"clickado boton2"); } public void clickBtn3(View target) { Log.d(TID_TAG,"clickado boton3"); } public void clickBtn4(View target) { Log.d(TID_TAG,"clickado boton4"); } public void clickBtn5(View target) { Log.d(TID_TAG,"clickado boton5"); } public void clickBtn6(View target) { Log.d(TID_TAG,"clickado boton6"); } }