What is a bin folder for in Android?

Ahmed picture Ahmed · Feb 23, 2012 · Viewed 21k times · Source

I heard that a bin folder is a binary and is executable. But I'm not quite sure how it affects my project as a whole? It seems to duplicate all my image resources besides having my apk in it thereby almost more than doubling my project size.

Can someone please understand it's primary functionality and why it should not be tampered/deleted?

Answer

waqaslam picture waqaslam · Feb 23, 2012

It's generated by the compiler, which contains all of the .class files to produce an .apk file. Your debug application file, .apk, resides there too once it is built successfully.

Ignore Them In Your Version Control System

In case you are managing your projects in a Version Control System (e.g. Git, SVN), you may ignore the bin and gen directories, since they are generated by your IDE automatically.