package cz.uhk.fim.dragonboatassistant.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
import cz.uhk.fim.dragonboatassistant.R;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	@Override
	protected void onStart() {
		super.onStart();
	}

	@Override
	protected void onStop() {
		super.onStop();
	}

	@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;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();
		if (id == R.id.action_settings) {
			Toast.makeText(MainActivity.this,"Zatím nebylo implementováno",Toast.LENGTH_LONG).show();
			return true;
		}
		return super.onOptionsItemSelected(item);
	}

//	public void onStartButtonClickXXX(View v) {
//		Intent intent = new Intent(getApplicationContext(), LocationActivity.class);
//		startActivity(intent);
//	}
	
	public void onStartButtonClick(View v) {
		Intent intent = new Intent(getApplicationContext(), TrackingActivity.class);
		startActivity(intent);
	}
	
	public void onSettingsButtonClick(View v) {
		//
		Toast.makeText(MainActivity.this,"Zatím nebylo implementováno",Toast.LENGTH_LONG).show();
	}
	
	public void onHelpButtonClick(View v) {
		//
		Toast.makeText(MainActivity.this,"Zatím nebylo implementováno",Toast.LENGTH_LONG).show();
	}

}
