Click here to Skip to main content
16,004,587 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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);
		reset(false);
	}
Posted
Updated 18-Feb-13 2:46am
v3
Comments
Bandi Ramesh 18-Feb-13 6:35am    
Codes?

1 solution

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
 
Share this answer
 
v2
Comments
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    
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 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900