views:

190

answers:

1

Can I use getCacheDir() only in a class that extends Activity? I would like to use it in an AsyncTask so that I can do the time intensive cache file saving in it.

Thanks Chris

+1  A: 
  • Pass it to your AsyncTask constructor
  • make it static variable
Pentium10