How to read raw resource in android device from java code
I am writing uiautomator test cases. This is java project. I need to read
launchers.txt resource file. I have copied it to my project's target
location using maven-resource-plugin. But
InputStream is = new
LoginLogout().getClass().getResourceAsStream("launchers.txt");
returns null.
How to read the raw resource.
I cannot use this.getResources().openRawResource(resourceId); as this is a
java project.
No comments:
Post a Comment