title: java physics app in android ( maths )
body: <p>Basically, I'm new to java and I have to make an android application that can do simple physics equations such as I=Q*t.... etc etc, basically I cannot for the life of me get the result to output, has anyone got any idea's why this wont work on the emulator? </p>
  
  <p>I have tried putting intents and all sorts in there. Help please </p>
  
  <pre><code>public class Current extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_current);
          // Show the Up button in the action bar.
          setupActionBar();
  
          @SuppressWarnings("unused")
          Intent intent = getIntent();
      }
  
          public void Main(String[]args){
  
          Button calc1 = (Button)findViewById(string.Calculate_Current);
  
          calc1.setOnClickListener(new View.OnClickListener() {
  
  
               public void onClick(View v) {
  
                  // IIIIII HATE JAVA
  
                  EditText Charge1 = (EditText)findViewById(R.id.number_input_2);    
                  EditText Time1 = (EditText)findViewById(R.id.number_input_3);
                  TextView Distances_answer = (TextView)findViewById(R.id.Distances_answer);
  
  
  
  
                  double charge = Double.parseDouble(Charge1.getText().toString());
                  double Time = Double.parseDouble(Time1.getText().toString());
  
                  @SuppressWarnings("unused")
                  Intent intent = new Intent();
  
                  Distances_answer.setText("" + charge + Time);
  
  
  
              }
          });
  </code></pre>