Skip to content Skip to sidebar Skip to footer

How To Add Dynamic Array Of Textviews To A Tablelayout Through Table Row In Android?

I have been trying to add array of text views in a table layout through table rows but the app stops working . when I try doing the same in other app it works but when I implement

Solution 1:

Your exception makes sense, an AsyncTask must not do UI operations from doInBackground. You have to publishProgress() and pass whatever parameters you want; this results in your AsyncTask getting called in OnProgressUpdate with your parameters, but in this method you are on UI thread and can do operations like addView().


Post a Comment for "How To Add Dynamic Array Of Textviews To A Tablelayout Through Table Row In Android?"