If you use a Dialog (e.g. AlertDialog) then you need to use
DialogInterface.OnClickListener (
http://developer.android.com/reference/android/content/DialogInterface.OnClickListener.html
).
If you use a View then it's View.OnClickListener (
http://developer.android.com/reference/android/view/View.On
Hello, I am trying to do this
public void onClick(View v) {
// TODO Auto-generated method stub
if(v==findViewById(R.id.Button1)){
Intent intent = new Intent(this,OknoActivity.class);
startActivityForResult(intent,ACTIVITY_INTENT_OK
2 matches
Mail list logo