Click here to Skip to main content
13,045,180 members (39,605 online)
Rate this:
Please Sign up or sign in to vote.
See more:
public class FilesListAdapter extends BaseExpandableListAdapter {
	public FilesListAdapter(Context context, SharedPreferences preferences) {
		this.context = context;
		this.preferences = preferences;
		resources = context.getResources();
		layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
Posted 18-Feb-13 0:27am
Updated 18-Feb-13 2:46am
bandi-ramesh 18-Feb-13 6:35am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

It's a class that extends AsyncTask to allow it to update the ProgressDialog passed in in the constructor.
It supports operations such as cancelling the running task by hitting the Back key whilst the ProgressDialog is showing.

The class is intended to be extended and the actual work of the task will be done in the protected abstract Result doInBackground (Params... params) method.

The API documentation for AsyncTask can be found here; AyncTask[^]

Hope this helps,
virajdaw 18-Feb-13 7:02am
Thanks a lot fredrik :)
Fredrik Bornander 18-Feb-13 7:05am
Glad I could help. If my answer answered you question you should mark it as accepted so that we can close the question.
virajdaw 18-Feb-13 7:18am
i added some more codes , can u explain me ?
Fredrik Bornander 18-Feb-13 9:20am
You can't keep changing a question, mark the current one as accepted and raise a new one if you have another question.
virajdaw 18-Feb-13 10:31am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 18 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100