Code example for Instrumentation

Methods: sendPointerSync

0
			return null; 
		} 
	} 
 
	void testB2() { 
		Instrumentation inst = new Instrumentation();
		inst.sendPointerSync(MotionEvent.obtain(SystemClock.uptimeMillis(),
				SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, 240, 400,
				0)); 
		inst.sendPointerSync(MotionEvent.obtain(SystemClock.uptimeMillis(),
				SystemClock.uptimeMillis(), MotionEvent.ACTION_UP, 240, 400, 0));
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present. 
		getMenuInflater().inflate(R.menu.main, menu);
		return true; 
	} 
 
	private static Handler handler;// ��Activity��onCreate��������������