You need to use a Context
object to access files in the local directory. You can use an instance of an Activity
as your Context
object. create an AsyncTask
and give it a reference to your Activity
. Then in your AsyncTask
, you can use the Activity
to access the filesystem:
activity.getFilesDir();