Android Question Question - B4A and Google Play

AlexOfOz

Active Member
Licensed User
Question - Does everything in the FILES folder become part of the APK, whether it is meant to be or not? Should I be storing ONLY the items that are part of the program in the FILES folder?

The reason I ask is because Google Play is refusing to publish my program because it says the APK is too big. I have ripped a lot of stuff out of it with only a small change in the APK size. Should I be storing non direct program stuff in a separate folder?

Thanks.
 

DonManfred

Expert
Licensed User
Longtime User
Does everything in the FILES folder become part of the APK, whether it is meant to be or not?
Yes. All files in Files folder are added to the apk when compiling.
Should I be storing non direct program stuff in a separate folder?
You can download additional resources at first start and put them into File.DirInternal. You apk become smaller.
Note that adding libraries may add size to the apk even if the Files folder is empty.

How many kb on Files are in your Files-folder?
 
Upvote 0

AlexOfOz

Active Member
Licensed User
Yes. All files in Files folder are added to the apk when compiling.

You can download additional resources at first start and put them into File.DirInternal. You apk become smaller.
Note that adding libraries may add size to the apk even if the Files folder is empty.

How many kb on Files are in your Files-folder?
When I say FILES folder, I'm talking about on the laptop. But I think you have answered my question. I currently have all sorts of weird and wonderful stuff stored in the FILES subfolder of the current project, some intended to be part of the app, such as PNG files etc, but many only as building tools. This includes PowerPoints, JPG's for the Google Play setup etc.

I'll now go through and remove everything not intended to be part of the working program and store it in a folder off to the side.

Thanks DonManfred.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
You can also rename the APK to .ZIP and then look inside the ZIP to make sure it does not have any files you do not wish to be in there.
 
Upvote 0
Top