title: how to retrieve a Double value from one activity to another?
body: <p>I have made an application containing 2 activities ,in that first activity contains some EditTexts (decimal numbers),and anothe ractivity also contains some Edtitexts(decimal) ,now I want to pass one EditText's value to another but as a "double" not as a string.Because that values will be used in mathematical calculation. I want that values in "double" strictly.
  I have tried as below: but have no idea how to cast a String to "double".</p>
  
  <p><strong>activity1.java</strong></p>
  
  <pre><code>    final Double d1;
          final Double d2;
          final Double d3;
          final Double d4;
          final Double d5;
          final Double d6;
          final Double d7;
          final Double d8;
          d1=Double.parseDouble(et1.getText().toString());
          d2=Double.parseDouble(et2.getText().toString());
          d3=Double.parseDouble(et3.getText().toString());
          d4=Double.parseDouble(et4.getText().toString());
          d5=Double.parseDouble(et5.getText().toString());
          d6=Double.parseDouble(et6.getText().toString());
          d7=Double.parseDouble(et7.getText().toString());
          d8=Double.parseDouble(et8.getText().toString());
  .
  .
  .
  .
  Intent ic = new Intent(Calculator_1Activity.this,Calculator2a.class);
          ic.putExtra("doubleValue_e1", d1);
          ic.putExtra("doubleValue_e2", d2);
          ic.putExtra("doubleValue_e3", d3);
          ic.putExtra("doubleValue_e4", d4);
          ic.putExtra("doubleValue_e5", d5);
          ic.putExtra("doubleValue_e6", d6);
          ic.putExtra("doubleValue_e7", d7);
          ic.putExtra("doubleValue_e8", d8);
  
          startActivity(ic);
  </code></pre>
  
  <p><strong>Activity2.java</strong></p>
  
  <pre><code>Intent receiveIntent = this.getIntent();
          e1 = receiveIntent.getDoubleExtra("doubleValue_e1", 0.00);
          e2 = receiveIntent.getDoubleExtra("doubleValue_e2", 0.00);
          e3 = receiveIntent.getDoubleExtra("doubleValue_e3", 0.00);
          e4 = receiveIntent.getDoubleExtra("doubleValue_e4", 0.00);
          e5 = receiveIntent.getDoubleExtra("doubleValue_e5", 0.00);
          e6 = receiveIntent.getDoubleExtra("doubleValue_e6", 0.00);
          e7 = receiveIntent.getDoubleExtra("doubleValue_e7", 0.00);
          e8 = receiveIntent.getDoubleExtra("doubleValue_e8", 0.00);
  
          Calculator_1Activity cal1 = new Calculator_1Activity();
          et1.setText(cal1.et1.getText().toString());
  </code></pre>
  
  <p>i have tried this but still not working.my project stops unexpectly..</p>