private void emulationOnTouch(View v) {
long downTime = SystemClock.uptimeMillis();
long eventTime = SystemClock.uptimeMillis() + 100L;
float x = 0.0F;
float y = 0.0F;
int metaState = 0;
MotionEvent motionEvent = MotionEvent.obtain(downTime, eventTime, 6661024, x, y, metaState);
v.dispatchTouchEvent(motionEvent);
}
Button bin;
View v;
emulationOnTouch(btn);
emulationOnTouch(v);