How to download a zip file from dropbox with Okhttp in android and extract the file in to android_assets
directory. i search in SO and find solution for downloading zip file but not find anything for downloading with Okhttp
Asked
Active
Viewed 98 times
1

MBehtemam
- 7,865
- 15
- 66
- 108
-
1What does "`android_assets` directory" mean? With regards to downloading a file using OkHttp, a search on `okhttp android download file` on a major search engine turns up http://stackoverflow.com/questions/25893030/download-binary-file-from-okhttp. – CommonsWare Dec 27 '15 at 16:30
-
`android_assets` mean a directory where the package is installed. (ex internal storage) – MBehtemam Dec 27 '15 at 16:46
-
1To write to internal storage, use the `getFilesDir()` or `getCacheDir()` methods on `Context` (and subclasses of `Context`, like `Service` and `Activity`). Then, follow the recipes in the duplicate question, though I recommend [the `okio` answer](http://stackoverflow.com/a/29012988/115145). – CommonsWare Dec 27 '15 at 16:53