package com.solatoz.joseph.uscitizenshiptest;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.google.android.gms.ads.MobileAds;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;

public class HomeMenuActivity extends AppCompatActivity {

public Button button22,button23,button24,button26,button27,button28,button210,button211;
private AdView mAdView;

public void init(){
button22 = (Button)findViewById(R.id.button22);
button23 = (Button)findViewById(R.id.button23);
button24 = (Button)findViewById(R.id.button24);
button26 = (Button)findViewById(R.id.button26);
button27 = (Button)findViewById(R.id.button27);
button28 = (Button)findViewById(R.id.button28);
button210 = (Button)findViewById(R.id.button210);
button211 = (Button)findViewById(R.id.button211);


button22.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent22 = new Intent(HomeMenuActivity.this, PrinciplesAmericanDemocracy.class);
startActivity(intent22);
}
});

button23.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent23 = new Intent(HomeMenuActivity.this, SystemOfGovernment.class);
startActivity(intent23);
}
});

button24.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent24 = new Intent(HomeMenuActivity.this, RightsAndResponsibilities.class);
startActivity(intent24);
}
});

button26.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent26 = new Intent(HomeMenuActivity.this, ColonialPeriodAndIndependence.class);
startActivity(intent26);
}
});

button27.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent27 = new Intent(HomeMenuActivity.this, US1800s.class);
startActivity(intent27);
}
});

button28.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent28 = new Intent(HomeMenuActivity.this, RecentAmericanHistory.class);
startActivity(intent28);
}
});

button210.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent210 = new Intent(HomeMenuActivity.this, Geography.class);
startActivity(intent210);
}
});
button211.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent211 = new Intent(HomeMenuActivity.this, SymbolsAndHolidays.class);
startActivity(intent211);
}
});
}




@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_home_menu);
MobileAds.initialize(this, "ca-app-pub-4060529804994949~7721081319");
mAdView = (AdView) findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);

init();
}
}