robovm

Use sqlite database for iOS (robovm) with libgdx

此生再无相见时 提交于 2019-11-29 21:06:42
问题 I have a libgdx project (Android) where I use a sqlite database . I'm developing the same project in iOS version (robovm) and I can't find anything about sqlite or database for iOS version. Is it possible to use the same sqlite database ? Thanks. 回答1: I know this is an old thread but this worked for me You dont have to do it EXACTLY like this of course, but this is how i did it First i made a helper class for SQLite called.. SQLiteHelper This would initialize things package com.hamzahrmalik

com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: - Error

人盡茶涼 提交于 2019-11-29 18:13:10
I am trying to develop an application in libGDX for iOS. In my Java class I have written this line private Texture texture = new Texture(Gdx.files.internal("data/folder_name_1/folder_name_2/abcd.png")); and my robovm.xml looks like this- <iosInfoPList>Info.plist.xml</iosInfoPList> <resources> <resource> <directory>../android/assets</directory> <includes> <include>**</include> </includes> <skipPngCrush>true</skipPngCrush> </resource> <resource> <directory>data</directory> </resource> </resources> When I try to run the code on iOS simulator it runs fine. But when I try to run it on an iOS device