Android Question libGDX - access to assett files

TheJinJ

Active Member
Licensed User
Longtime User
Hi

Using libGDX and having an issue getting libGDX to read files loaded via B4A.

I check that the file is uploaded via file tab using

File.Exists(File.DirAssets, "whatever_file.png").....

But when I try and access it with libGDX with something similar to this

myBacking.InitializeWithFile(lGdx.Files.internal("whatever_file.png"))

It throws the error

Caused by: java.io.FileNotFoundException: whatever_file.png

The file is uploaded to the virtual_assets folder on the device and all seems ok - just accessing via libGDX seems to be the problem. Can anyone help on what I'm missing?

Cheers
Neil
 
Top