/*
 *    Copyright 2010 Chris Sinjakli
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @author Chris Sinjakli
 */

package uk.co.sinjakli.trivial;

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

public class HomeActivity extends Activity {
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(final Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.home);


	}
}

@@ -711,17 +711,104 @@
 oid.
-os.Bundle
+content.Intent;%0Aimport android.os.Bundle;%0Aimport android.view.View;%0Aimport android.widget.Button
 ;%0A%0Ap
@@ -855,10 +855,9 @@
 y %7B%0A
-%09
 %0A
+
 %09/**
@@ -1043,14 +1043,299 @@
 home);%0A%0A
+%09%09final Button startQuiz = (Button) findViewById(R.id.btn_start_quiz);%0A%09%09startQuiz.setOnClickListener(new Button.OnClickListener() %7B%0A%0A%09%09%09@Override%0A%09%09%09public void onClick(View v) %7B%0A%09%09%09%09final Intent i = new Intent(HomeActivity.this, QuizActivity.class);%0A%09%09%09%09startActivity(i);%0A%09%09%09%7D%0A%0A%09%09%7D);
 %0A%09%7D%0A%7D%0A

Implement onClick for Start Quiz button.