It should be straightforward, but I am not sure where something is wrong. I try to catch the click on the TextView with:
TextView
public void runNextTask(){
Change :
TextView modelTextview = (TextView)addView.findViewById(R.id.modelEdit);
to
TextView modelTextview = (TextView)addView.findViewById(R.id.model);
and there is no need of android:onClick="onClick" in your xml code if you want do this with java code
android:onClick="onClick"