package com.cs.simpleproject;

import android.app.Activity;
import android.os.Bundle;

public class Activity_Main extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

	}
}
@@ -78,16 +78,72 @@
 .Bundle;
+%0Aimport android.view.View;%0Aimport android.widget.Button;
 %0A%0Apublic
@@ -315,14 +315,212 @@
 t.main);
+%0A%09%09%0A%09%09Button button_exit=(Button) findViewById(R.id.button_Exit);%0A%09%09button_exit.setOnClickListener(new View.OnClickListener() %7B%0A%09%09%09@Override%0A%09%09%09public void onClick(View v) %7B%0A%09%09%09%09finish();%0A%09%09%09%7D%0A%09%09%7D);
 %0A%0A%09%7D%0A%7D

Exit button is activated.