Issue
The structure of my project is:
src
--main
----java
----res
--test
----java
----resources
How can I access file from resources folder from AndroidTestCase?
Solution
getClass().getClassLoader().getResource("file.txt").getFile();
Answered By - Margarita Spasskaya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.