I am using sax parser in android and i am displaying the content parsed into a custom list view which even contains an image.
The image is loading very slowly and thereby my list which contains 10 elements are displayed after few minutes and even if the list loads to scroll the image its taking time saying that My SAX parser app is not responding.
Is there any way to make the images to display fast and make the app respond properly on scrolling the list?
Thanks in advance.
Jump to Post
You can use either AsyncTask or even better Loader (unlike AsyncTask Loader is not restarted on orientation change that does trigger multiple requests) to to manage downloading process and in same time to indicate to user that this is downloaded content and it will be displayed once finished
Jump to Post
You should start reading more API documentation instead of trying to hack away solution from code you will find on internet as you are missing basic concepts. AsyncTask and Loader already acomodate threading, secondly while they are doing something you are able to show progress bar or any custom loading …
All 12 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.