In Android How to retain the text of all the textviews in the tableview on orientation change

34 views Asked by At

In my android app, I am creating the Textviews dynamically(in java code) and binding them to a TableLayout. I have an async Task, to continuously update every textview's text. I am changing the text of these textviews on click. On orientation change, I want to retain the text of all the textviews in the tableview. During creation, I am giving unique ID to each textviews, I don't want to declare onConfigChanges in Manifest(Bad aproach). Can not go with OnSavedInstanceState() aproach also, as there are many textviews. So, I am trying with async task in a fragment. Please help me, how to achieve this.

0

There are 0 answers