button.setOnTouchListener(new OnTouchListener() { public void onClick(View v) { Toast.makeText(MainActivity.this, \"YOUR TEXT\", 5000).show(); } }); <
button.setOnTouchListener(new OnTouchListener() { public void onClick(View v) { Toast.makeText(MainActivity.this, \"YOUR TEXT\", 5000).show(); } });
Check your code: http://developer.android.com/reference/android/view/View.OnTouchListener.html You should use method onTouch.