Android touch move ball towards the square
===

I am developing a game. I want to use the touch event to throw the ball. when player touches the ball then the ball goes towards the square....

this is my source code:

public class MainActivity extends Activity {
	private OpenGLRenderer mRenderer;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		GLSurfaceView view = new GLSurfaceView(this);
		mRenderer = new OpenGLRenderer();
		view.setRenderer(mRenderer);
		setContentView(view);
	}
}
