getting values from edit text in list in android
<p>i have a list which will have as many rows as user wants.And every particular row will have four edit texts . The user input for no of rows is also in a list as header and the same list has a footer which has a continue button on whose click all the values from the four edit text of all the rows will be retrieved and get stored in database . Now m not able to get the values for all the edit texts on that continue button click . Any suggestions how to do it??</p>

<pre><code>     public class Cross_Points extends Activity implements OnClickListener {
    private  EditText num,edit_startPoint,edit_endPoint,edit_feet,edit_inch;
    public static   int n=4;
    private int editText_Value,p;
    private Handler handler,mhandler;
    private LinearLayout wrapper;
    private View inflatedView,v,header,footer;
    private LayoutInflater inflater;
    private ArrayList&lt;View&gt; al;
    private Bundle b;
    private Button continue_btn;
    private Boolean bool=false;
    private ListView lv;
    private int clickedPosition;



    public void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.cross_points);
        setBodyUI();

        gettingUserInput();

        lv.setFocusable(true);
        lv.setFocusableInTouchMode(true);
        lv.setAdapter(new EfficientAdapterAB(this));


    }



    //-------------------------------onCreate-------------------------------------
    private void gettingUserInput() {
        // TODO Auto-generated method stub
        num.addTextChangedListener(new TextWatcher() {

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
                // TODO Auto-generated method stub

            }

            @Override
            public void beforeTextChanged(CharSequence s, int start, int count,
                    int after) {
                // TODO Auto-generated method stub

            }

            @Override
            public void afterTextChanged(Editable s) {
                // TODO Auto-generated method stub
                 try {
                     n=Integer.parseInt(num.getText().toString());
                        System.out.println("--------------------"+n);
                } catch (Exception e) {
                    // TODO: handle exception
                    e.printStackTrace();
                }

            }
        });
        /*b= new Bundle();
         b = getIntent().getExtras();
         n=b.getInt("Intkey");*/
         num.setText(Integer.toString(n));

    }
     private   class EfficientAdapterAB extends BaseAdapter {
            private LayoutInflater mInflater;
             ViewHolderAB holderAB;


             public EfficientAdapterAB(Context context) {
             mInflater = LayoutInflater.from(context);


             }

             public int getCount() {
             return n;
             }

             public Object getItem(int position) {

             return position;
             }

             public long getItemId(int position) {

             return position;
             }

public View getView(final int position,  View convertView, ViewGroup parent) {


    holderAB = new ViewHolderAB();

    if (convertView == null) {

                convertView = mInflater.inflate(R.layout.no_crosspoints, null);




                    }   


else {
             holderAB = (ViewHolderAB) convertView.getTag();
             }
    System.out.println("--------------------------&gt;&gt;&gt;&gt;"+position);

    holderAB.text = (TextView) convertView.findViewById(R.id.num_txt);

    holderAB.text.setText(""+(position+1));
    edit_startPoint=(EditText)convertView.findViewById(R.id.EditText_startPoint);
    edit_endPoint=(EditText)convertView.findViewById(R.id.EditText_endPoint);


    edit_startPoint.setTag(position);
    edit_endPoint.setTag(position);
    System.out.println("position inside listview is"+edit_startPoint.getTag());
    System.out.println("position inside listview is"+edit_endPoint.getTag());

    continue_btn.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {

            //for (int i = 0; i &lt;n ; i++) {
                //System.out.println("-=---=-=--=-=--=-=---=-=--=-=-=-=="+lv.getCount());
                //System.out.println("-=---=-=--=-=--=-=---=-=--=-=-=-=="+lv.getChildCount());
                 View vListSortOrder;
                        vListSortOrder=lv.getChildAt(position); 
                        System.out.println("iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii"+position);
                        try{
                            edit_startPoint=(EditText)vListSortOrder.findViewById(R.id.EditText_startPoint);
                            edit_endPoint=(EditText)vListSortOrder.findViewById(R.id.EditText_endPoint);
                            int d=(Integer) edit_startPoint.getTag();
                            int e=(Integer) edit_startPoint.getTag();
                            System.out.println("dddddddddddddddddddddddddddddddddddddddd"+d);
                            System.out.println("eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"+e);
                        }
                        catch (Exception e) {
                            // TODO: handle exception
                            System.out.println("eeeeeeeeeeeeeeeeeeeeeexcepttionnn"+e.getMessage());
                        }
        /*int d=(Integer)   edit_startPoint.getTag();
        int e=(Integer) edit_startPoint.getTag();
        System.out.println("-=---=-=--=-=--=-=---=-=--=-=-=-=="+d);
        System.out.println("-=---=-=--=-=--=-=---=-=--=-=-=-=="+e);*/
        }
        //}
    });

    convertView.setTag(holderAB);

        return convertView;   
         }
</code></pre>
