how to get value from dynamically created edit text in android : **PLEASE DON'T MARK THIS QUESTION AS DUPLICATE BECAUSE I HAVE SEARCHED ALMOST EVERYTHING AND TRIED EVERY SOLUTION BUT NONE OF THEM WORKED FOR ME.**
*and because i don't have much reputation i am not able to post comment on other answered post about my issue and that is why i am asking this question* 

my question is how to get value from dynamically created EditText in android

this is my dynamic view (xml file)

     <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">
    
            <EditText
                android:id="@+id/et_waypoint"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:background="@drawable/background"
                android:hint="Way Points"
                android:padding="10dp"
                android:textSize="16sp" />
    
            <Button
                android:id="@+id/btn_waypoint"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Find" />
        </LinearLayout> 

and i am using `LayoutInflater` because i want perfect Designed layout which is not accomplish by me via `setLayoutParams` so this is the reason i am using `LayoutInflater`

and here is my code

      LayoutInflater l = getLayoutInflater();
                        final LinearLayout mainActivity = (LinearLayout) findViewById(R.id.dynamic);
                        final View view = l.inflate(R.layout.dynamic_layout_waypoints, null);
                        buttonWayPoints = (Button) view.findViewById(R.id.btn_waypoint);
                        editTextWayPoints = (EditText) view.findViewById(R.id.et_waypoint);
     mainActivity.addView(editTextWayPoints);

and i am new to android so please help me with this.
and most of people suggest this 

> http://stackoverflow.com/a/5923764/4696610

 solution but its not worked for me, the issue is when i implement this code my **ADD NEW EDIT TEXT BUTTON** not respond me.