title: Passing a double value through to a different class in Android Java
body: <p>I am just wondering what ways there are to pass two or more double values from classA to ClassB</p>
  
  <p>at the minute i have found code that give me this method:</p>
  
  <pre><code>double a, b;
  double a = 2.456;
  double b = 764.2353;
  Intent i = new Intent();
  i.setClassName("com.b00348312.application","com.b00348312.application.ClassB");
  double number = getIntent().getDoubleExtra("value1", a);
  double number = getIntent().getDoubleExtra("value2", b);
  startActivity(i); 
  </code></pre>
  
  <p>This does not pass the values through nor can i find a way of retrieving these values</p>
  
  <p>Another question on here suggested the method of creating an instance of the class but trying that i cant seem to pass the values through properly.</p>
  
  <p>I am programming for Android, so I don't know if the method will be different</p>