i built some text view programmatically and i want to save them in my layout but i do not know how to do it.is Shared Preferences do that ? and how ?
here is my code
LinearLayout main = (LinearLayout) findViewById(R.id.mainLayout);
String[] textArray = { weatherResult };
for (int i = 0; i < textArray.length; i++) {
TextView textView = new TextView(RestFulWebservice.this);
textView.setText(textArray[i]);
main.addView(textView);
i checked this question but it was not what i want. Create a new TextView programmatically then display it below another TextView