So by selecting a button possibly save the values to the SD card (preferably) or another xml layout?
I've read some stuff on using Shared Preferences where you can save any primitive data: booleans, floats, ints, longs, and strings. I'm not 100% sure I'm looking in the right areas.
For example...
XML
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Enter weight in lbs:"
android:textStyle="bold"/>
<EditText
android:id="@+id/weight"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="number" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="40 yard dash time (4.20s - 8.50s):"
android:textStyle="bold" />
<EditText
android:id="@+id/fourtytime"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="numberDecimal" >
</EditText>
</LinearLayout>
JAVA (please ignore the spinner within the onCreate method)
package com.aces.acesfootballuk;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
public class CoachesPage extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.coachespage);
Spinner spinner1 = (Spinner) findViewById(R.id.spinnerdowns);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(
this, R.array.downs, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner1.setAdapter(adapter);
Spinner spinner2 = (Spinner) findViewById(R.id.spinnerplayers);
ArrayAdapter<CharSequence> adapter2 = ArrayAdapter.createFromResource(
this, R.array.players, android.R.layout.simple_spinner_item);
adapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner2.setAdapter(adapter2);
}
};