Tuesday, August 6, 2013

Removing DOS Carriage Return in Linux

This shows up as "^M" in some editors, and can cause some scripts to fail.

To fix it, install the package "dos2unix". Available in at the minimum RedHat and Ubuntu based distros.

Thursday, August 1, 2013

Android Private Libraries

In the Eclipse ADT, this is libraries that are placed in the "libs" folder, they are automatically placed on the classpath as "Android Private Libraries".

However, when removing it, the ADT removes the library but flags it as an error as it is missing. A restart needed to be performed before the project compiles properly.

Android Include Library in APK

In order for library JAR files to be included in the APK, it is necessary to go the "Build Path" and check "Android Private Libraries" in "Order and Export".

References:

Android Library References

To make one project depend on another, add into project.properties as follows:

android.library.reference.1=../LibraryOne
android.library.reference.2=../LibraryTwo