P psdos Active Member Licensed User Longtime User Apr 14, 2012 #1 Is there some trick to know the size of a file added to a project, without having to copy the device? I see File.Size (File.DirAssets, "database.db") does not work, always gives 0. Thanks.
Is there some trick to know the size of a file added to a project, without having to copy the device? I see File.Size (File.DirAssets, "database.db") does not work, always gives 0. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2012 #2 You can press Alt + 2 (Compiles without signing and installing) and then check the size of the APK file. Upvote 0
You can press Alt + 2 (Compiles without signing and installing) and then check the size of the APK file.
margret Well-Known Member Licensed User Longtime User Apr 15, 2012 #3 I know the assets folder is read-only but if the file size command does not report the correct size, it could be the os version or the device. I will try to test this tomorrow and see if I get the same result. Upvote 0
I know the assets folder is read-only but if the file size command does not report the correct size, it could be the os version or the device. I will try to test this tomorrow and see if I get the same result.
Erel B4X founder Staff member Licensed User Longtime User Apr 15, 2012 #4 The assets folder is a virtual folder. The files are actually compressed inside the APK file. File.Size will not work here. Upvote 0
The assets folder is a virtual folder. The files are actually compressed inside the APK file. File.Size will not work here.