I\'m trying to access a file in my project. But getResource method returns null.
This is how my project looks like:
Either Approach will work. its just Filepath issue.
Try to remove "assets" from below line of code.
Thread.currentThread().getContextClassLoader().getResource("assets/xxx.png"); //returns null