https://kotlinlang.org logo
#korge
Title
# korge
l

Lucas Hebinger

03/17/2021, 6:06 PM
Here's my error.
d

Deactivated User

03/17/2021, 8:30 PM
Uhm. Which KorGE version are you using? Are you embedding KorGE into an existing Android app, or it just uses the default gradle android tasks provided by KorGE?
l

Lucas Hebinger

03/17/2021, 8:46 PM
Hi, I fixed to problem by replacing AppCompatActivity by KorgwActivity on my main activity. But now I've another problem... I'm implementing Korge on an existing Android project and I need to load an image, so I use
Copy code
resourcesVfs["top_arrow.png"].readBitmap()
But I got java.io.FileNotFoundException: top_arrow.png. Where do I have to put the file on an Android project ?
Here's my project.
d

Deactivated User

03/18/2021, 8:39 PM
So you are creating an android application in the end, right? You have a sample android project using KorGE here: https://github.com/korlibs/korge-samples/tree/master/integrations/android
l

Lucas Hebinger

03/18/2021, 8:40 PM
Thanks for your answer. Finally found the solution by creating an "assets" folder inside src/main.
👍 1
7 Views