title: Getting Data from Multiple EditText after a click of single Button
body: <p>I'm totally new to this forum and need help from you guys. I've been developing an Android application to find the efficiency of an Induction Motor. I'm new to Android App developement so I need your help. </p>
  
  <p>I've created the layout and I have multiple edit text to get the inputs from  the user, all I want to do is get the input from the edittext on the press of a single button. Can anyone help me with the java coding</p>
  
  <p>The XML Part of the layout is as follows:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context=".StartingPoint" &gt;
  
     &lt;TextView 
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:text="THE EFFICIENCY IS 0" 
         android:gravity="center"
         android:textSize="25dp"      
         /&gt;
  
      &lt;EditText 
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:hint="ENTER VOLTAGE"
         android:gravity="center"
         android:id="@+id/etVoltage"
         /&gt;
  
     &lt;EditText 
         android:layout_width="fill_parent"
         android:layout_height="wrap_content" 
         android:hint="ENTER CURRENT"
         android:gravity="center"
         android:id="@+id/etCurrent"
         /&gt;
  
     &lt;EditText 
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:hint="ENTER FREQUENCY"
         android:gravity="center"
         android:id="@+id/etFrequency"
         /&gt;
  
     &lt;EditText 
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:hint="ENTER STATOR PHASE RESISTANCE"
         android:gravity="center"
         android:id="@+id/etStatorresistance"
         /&gt;
  
     &lt;EditText 
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:hint="ENTER NO LOAD POWER"
         android:gravity="center"
         android:id="@+id/etLoadpower"
         /&gt;
  
     &lt;Button 
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:text= "FIND EFFICIENCY"
         android:gravity="center"
         android:id="@+id/bFind"
         /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The Java Part of the coding is StartingPoint.java</p>
  
  <pre><code>package com.blitzkrieg.vishwas;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.Menu;
  import android.view.View;
  import android.widget.Button;
  import android.widget.EditText;
  import android.widget.TextView;
  
  public class StartingPoint extends Activity {
  
      EditText current, voltage, frequency, loadpower, statorresistance; 
      Button find;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_starting_point);
  
          EditText current = (EditText) findViewById(R.id.etCurrent);
          EditText voltage = (EditText) findViewById(R.id.etVoltage);
          EditText frequency= (EditText)findViewById(R.id.etFrequency);
          EditText loadpower= (EditText)findViewById(R.id.etLoadpower);
          EditText statorresistance= (EditText)findViewById(R.id.etStatorresistance);
  
          Button find = (Button) findViewById(R.id.bFind);
          find.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View arg0) {
                  // TODO Auto-generated method stub
              }
          });
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.starting_point, menu);
          return true;
      }
  }
  </code></pre>
  
  <p>Doubts that I've in my mind regarding this coding</p>
  
  <ol>
  <li><p>Is the use of findViewbyId for edittext correct over here, I want to get the input values from the user using edit text.</p></li>
  <li><p>Where in this Java coding shall I put the line of code to fetch the data from all the    editText.</p></li>
  <li><p>I want to get the result that is the efficiency of the motor just with the press of a single button which "Find Efficiency" in case of this program.</p></li>
  <li><p>Is the data entered into the editText automatically fetched after enterin the data in that edit Text or do I need to add some buttons for fetching the data?</p></li>
  </ol>
  
  <p>Please Help me guys. </p>