Click here to Skip to main content
11,922,641 members (56,620 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java Mobile Android
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 1:27am
Edited 18-Feb-13 3: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
Web01 | 2.8.151125.1 | Last Updated 18 Feb 2013
Copyright © CodeProject, 1999-2015
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