Back to project page StrTrainer_android.
The source code is released under:
GNU General Public License
If you think the Android project StrTrainer_android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** */* w w w . j av a2s .c o m*/ * StrTrainer /com/davefarinelli/strtrainer/AppSettings.java * * Copyright (c) 2011 Dave Farinelli * * LICENSE: * * This file is part of StrTrainer, a companion Android app for the Starting Strength weight * training program (http://davefarinelli.com/developer/android). * * StrTrainer is free software: you can redistribute it and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any * later version. * * StrTrainer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with StrTrainer. If not, see * <http://www.gnu.org/licenses/>. * * @author Dave Farinelli <davefarinelli[at]gmail[dot]com> * @license http://www.gnu.org/licenses/gpl.html * @copyright 2011 Dave Farinelli */ package com.davefarinelli.strtrainer; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class AppSettings extends Activity implements OnClickListener { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.settings); //Sets click listener for estimate 1RM button Button buttonInitializeWorkSetValues = (Button)findViewById(R.id.b_initializeWorkSetValues); buttonInitializeWorkSetValues.setOnClickListener(this); //Sets click listener for estimate 1RM button Button buttonCalculate = (Button)findViewById(R.id.b_modifyIncrementValues); buttonCalculate.setOnClickListener(this); } @Override public void onClick(View arg0) { switch(arg0.getId()) { case R.id.b_initializeWorkSetValues: //Intent object to start Compute activity Intent intent= new Intent(this, AppSettings_InitializeWorkSetValues.class); startActivity(intent); break; case R.id.b_modifyIncrementValues: //Intent object to start Compute activity Intent intent2= new Intent(this, AppSettings_ModifyIncrementValues.class); startActivity(intent2); break; } } }