Wish App File Count Discrepancy

Cliff McKibbin

Member
Licensed User
Longtime User
I have been puzzled when I do manual backups of my apps for some time.
I have complex Apps that show 8xx files being backed up and others that are less complex that show 12xx and even 13xx files.
Both use the same sort of 'views'. In fact, App B below was created from a copy of App A with a lot of the functionality cut out.
I have isolated the issue down to primarily the BIN and Dexed subdirectories as shown:

________________________ App A_______App B
Total Files________________871________1235
Modules__________________31___________17
Screens___________________24___________13
Libs_______________________13___________14

Object SubDirs___________655_________1106
B4xLibs____________________9_____________9
BIN_____________________252___________492
Dexed__________________243___________465
Gen______________________47____________59
RES_______________________4______________4
SRC______________________96____________73

Total Size_____________21.5MB______25.5MB

I looked further at the BIN and Dexed subdirectories
Within the BIN\class\androidx subdir I found a big discrepancy with the following sub directories:

App A _________________App B
Annotation____________Activity
Core___________________Annotation
LifeCycle_______________Asyncclayoutinflator
Versionparceable______CordinatorLayout
________________________Core
_______________________Customview
_______________________DocumentFile
________________________drawerlayout
________________________Fragment
________________________Lifecycle
________________________localbroadcastmanager
________________________Media
________________________Print
________________________SavedState
________________________slidingpanelayout
________________________swiperefreshlayout
________________________versionedparcelable
________________________viewpager

There are identical sub directories in the 'Dexed\Androidx sub directory.

Each of these sub directories has 10 to 20 entries which probably accounts for the additional files in App B.

My main question is ' How did this extra stuff get in?'. I have progressed up through the B4A versions to the current version so there was no big jump on any one app.
Both are always compiled under each new app to make sure all are up-to-date.
This appeared to happen about the time a version started maintaining the dexed entries.

My 2nd question is 'Can I get rid of those subdirectories that are excess in App B?'
or, better yet, 'Can a future B4a version get rid of them for me?'

p.s. note that I had to use underlines to create columns. Is there some trick to do that?

Thanks, Cliff McKibbin
 
Last edited:

aeric

Expert
Licensed User
Longtime User
For B4A project, you don't need to backup the entire Objects directory, except for the app icon inside \res\drawable.
The Objects directory will be regenerate when you recompile the project.
There are functions in the IDE to zip the project and AutoBackup.
 
Top