Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java 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);
		reset(false);
	}
Posted 18-Feb-13 1:27am
Edited 18-Feb-13 3:46am
v3
Comments
bandi-ramesh at 18-Feb-13 6:35am
   
Codes?

1 solution

Rate this: bad
good
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,
Fredrik
  Permalink  
v2
Comments
virajdaw at 18-Feb-13 7:02am
   
Thanks a lot fredrik :)
Fredrik Bornander at 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 at 18-Feb-13 7:18am
   
i added some more codes , can u explain me ?
Fredrik Bornander at 18-Feb-13 9:20am
   
No.
You can't keep changing a question, mark the current one as accepted and raise a new one if you have another question.
virajdaw at 18-Feb-13 10:31am
   
ok

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

  Print Answers RSS
0 OriginalGriff 275
1 DamithSL 265
2 CPallini 235
3 Maciej Los 185
4 George Jonsson 170
0 OriginalGriff 5,305
1 DamithSL 4,382
2 Maciej Los 3,760
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,901


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 18 Feb 2013
Copyright © CodeProject, 1999-2014
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