Re: [android-developers] Issue with OnClick

2012-02-25 Thread YuviDroid
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

[android-developers] Issue with OnClick

2012-02-25 Thread Michal Ĺ anda
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