Android spinner calculation with variables

view story

http://stackoverflow.com – I have a problem that i can't figure out how to solve. My code is the following: package com.app.BoomBase; import android.app.Activity; import android.app.LauncherActivity.ListItem; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemSelectedListener; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; import android.widget.Toast; public class Distance extends Activity implements OnItemSelectedListener { Button Calc; Spinner spT (HowTos)