How to create java.io.File class from file inside assets ? I have face.jpg in /assets/images/ and I need File to put in call of another function. How to achieve this ?
Asked
Active
Viewed 1,125 times
1 Answers
4
How to create java.io.File class from file inside assets ?
You don't, unless you copy the file from assets to a local file. Assets are not files in the filesystem, and so you cannot create File
objects representing them.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491