0

I am tring to get news from json. Averything works clear but the question is, my listview work so slow and force close or wait buttons appears. Is it because it dynamicly gets the information. How should i get the informations in a array and get the news from there. I only want to refresh when refresh button is clicked?

2 Answers 2

1

Move data loading to the separate thread(not UI one) and execute some callback when loading completes(to actually update your listview)

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

Comments

1

Try using the async task for any data transfer over the network.See the detail below:

http://developer.android.com/reference/android/os/AsyncTask.html

Hope this helps!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.