class.getResource() returns null

34 views
Skip to first unread message

Ander Ruiz

unread,
May 12, 2015, 3:55:47 AM5/12/15
to javafx...@googlegroups.com
I'm trying to figure out why I'm getting while calling class.getResource() in an android device. The same code works ok on a computer. I decompressed the APK file and the folder I'm trying to get is there...

Class: toll01.avm.fxBrowser.scene.TollScene
Folder: toll01/avm/fxBrowser/scene/res
Java call TollScene.class.getResource("res") returns null

Any ideas? do I miss any permission?

Ander Ruiz

unread,
May 14, 2015, 11:43:07 AM5/14/15
to javafx...@googlegroups.com
I managed to solve my problem, the problem was trying to get a resource that was a folder. When I try to access a real my I get the file without problem and the proper URL also
Reply all
Reply to author
Forward
0 new messages