1

I am manually creating the EditText in for loop. How can i store all the values in ArrayList in android.

1 Answer 1

3
ArrayList<String> arryList = new ArrayList<String>();  
 arryList.add(editText.getText().toString()); 

this should help..

Sign up to request clarification or add additional context in comments.

2 Comments

then u must ve done something wrong with getting instance of editText.. check to see whether editText holds null.. check in debug mode..
ArrayList<String> arryList = new ArrayList<String>(); arryList.add(f1.getText().toString()); String ftname = f1.getText().toString();

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.