package com.example.Maps013;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;




public class Podometre_mode extends Activity 
{
    
    TextView tv_run, tv_walk; 
     
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.podometre_mode_layout);
            
       
        tv_walk = (TextView)findViewById(R.id.run);
		tv_run = (TextView)findViewById(R.id.strong);

		tv_walk.setOnClickListener(new View.OnClickListener() 
		{

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClass(Podometre_mode.this, StepCounter.class);
				Bundle bundle = new Bundle(); 
				bundle.putBoolean("walk", false);
				intent.putExtras(bundle);
				startActivity(intent);
			}
		});

		tv_run.setOnClickListener(new View.OnClickListener() 
		{

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent();
				intent.setClass(Podometre_mode.this, StepCounter.class);
				Bundle bundle = new Bundle(); 
				bundle.putBoolean("run", true);
				intent.putExtras(bundle);
				startActivity(intent);
			}
		});
        
      
     
        
      
        
        
        
    }
     
}