I'm building a little Android game using libgdx. For now I have a copy of the game's assets in the desktop project folder and the Android project folder. For some strange reason I have to access those files differently in each of the two versions.
This works fine in the desktop app but gives me a FileNotFound exception in the android app:
Texture texture = new Texture(Gdx.files.internal("assets/someImage.png"));
If I remove the "assets" from the filename it's the other way round (Android works, desktop crashes):
Texture texture = new Texture(Gdx.files.internal("someImage.png"));
I'm not sure what the problem is. The folder structure is exactly the same for both projects... What is the right way to this with libgdx?