package com.tbp.safemaps;



import the.safemaps.R;
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.view.View.OnClickListener;
import android.widget.Button;

public class MarkUnsafe extends Activity {
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.marksafe);
		//Button back = (Button)findViewById(R.id.mbuttonBack);
		Button done = (Button)findViewById(R.id.done);
		
	
		done.setOnClickListener(onClickListener);
		// back.setOnClickListener(onClickListener);
	}
		
		private OnClickListener onClickListener = new OnClickListener() {
		     @Override
		     public void onClick(View v) {
		         switch(v.getId()){
		            // case R.id.go:
		            	// Intent go= new Intent(Markunsafe.this,mapdirections.class);
		         		//startActivity(go);
		             //break;
		           
		            
		         }

		   }
		};
	

		public boolean onCreateOptionsMenu(Menu menu)

		{

		getMenuInflater().inflate(R.menu.main, menu);

		return true;

		}

		@Override

		public boolean onOptionsItemSelected(MenuItem item)

		{

		super.onOptionsItemSelected(item);

		switch(item.getItemId())

		{

		case R.id.action_bar:

		//Toast.makeText(getBaseContext(), "back", Toast.LENGTH_SHORT).show();
			 Intent back= new Intent(MarkUnsafe.this,MainActivity.class);
      		startActivity(back);
		break;

		
		}

		return true;

		}

	
	

}
