Switch depending on a previous switch variable
<p>I'm totally new to programming and I'm trying to just create a calculator of the day you're going to die(Obviuosly false). I have done the following switches that take data from user input such as questions as Do you smoke or are you male or female.
This is the code I have :</p>

<pre><code>package as.as;

import as.as.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RadioGroup;
import android.widget.TextView;

public class myMenu extends Activity{
  protected static final float Die = 80;
  protected  float Gender;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    final TextView MensajeGender = (TextView)findViewById(R.id.age);
    final RadioGroup rggender = (RadioGroup)findViewById(R.id.radioGroup2);

    rggender.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
      public void onCheckedChanged(RadioGroup group, int checkedIdGender) {
        switch(checkedIdGender){
          //male
          case 2131099655:
            double Gender = (Die*0.93);    
            MensajeGender.setText("" + Gender);
            break;
          //female
          case 2131099656:
            Gender =  (Die*1.04);
            MensajeGender.setText("" + Gender);
            break;
        }

        final RadioGroup rgsmoke = (RadioGroup)findViewById(R.id.radioGroup1);
        rgsmoke.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
          public void onCheckedChanged(RadioGroup group, int checkedIdSmoke) {
            switch(checkedIdSmoke){
              case 2131099660:
              double Smoke =  Gender*0.93;
              MensajeGender.setText("" + Smoke);
              break;
            case 2131099661:
              Smoke = Gender*1.04;    
              MensajeGender.setText(" " + Smoke);
              break;
            }
          }
        });
      }
    });
  };
}
</code></pre>

<p>EDIT(ADD QUESTION): What's wrong here?
EDIT2: If I get to finish this, how would you recommend me to learn to programm in android? A book or something?(Completely new to programming, even though i knew a bit of C++)</p>
