how to include data file into package? lazarus / 43-Android ---------------------------------------------------------------------- fulan · 2013-08-30 02:58 I want to include data file into package (i'm using androidlcl as project template ). Where do i have to put it in project folder so build_debug_apk  automatically include it in the package. --- Windows XP, Laz4android1.1-41139 ---------------------------------------------------------------------- felipemdc · 2013-08-31 15:38 I think that you should put it in the android/res/raw directory (create it if necessary). Then it will put it somewhere in the data directory of the package once installed, not sure where as I never used this myself. ---------------------------------------------------------------------- roeug · 2014-01-23 16:26 I put bin.data into android\raw\lib\armeabi\lib_my_file_name.so On device it's copied to /data/data/com.pascal.lcltest/lib/lib_my_file_name.so (if you don't change the package name) ---------------------------------------------------------------------- truetom · 2014-01-24 06:26 You should create a new directory "android/assets",then put all data in the directory and edit the build_debug_apk.bat ,find this line: call aapt p -v -f -M AndroidManifest.xml -F bin\%APP_NAME%.ap_ -I %APK_SDK_PLATFORM%\android.jar -S res -m -J gen raw change to: call aapt p -v -f -M AndroidManifest.xml -F bin\%APP_NAME%.ap_ -I %APK_SDK_PLATFORM%\android.jar -S res -m -J gen raw -A assets Thanks and regards! ---------------------------------------------------------------------- roeug · 2014-01-24 18:02 Thanks truetom. For assets as I remember there exist some file size limitations (may be, I am wrong) ---------------------------------------------------------------------- mmilorad · 2014-01-24 19:02 How to use files from Assets directory ? Any example ?