Skip to content Skip to sidebar Skip to footer

Use A Viewpager / Pageradapter To Change A String

I have a JSON request which gets a response from YouTube: @Override protected Void doInBackground(Void... arg0) { try { HttpClient client = new DefaultHttpClien

Solution 1:

Try studying this answer and then changing your code to follow example of updating the 'updateBananas' listArray prior to calling 'notifyDataSetChanged()'. The call to notify is the signal to update the View in the adapter you are using.

In your code, the getYouTube... needs to update and array object that the adapter has a reference to.

you should be able to get it by implementing the same connections from the sample in your code.

Post a Comment for "Use A Viewpager / Pageradapter To Change A String"