If you build and sign android application using jdk 7, the result apk could not be installed on physical device,
It is because the default digest algorithm for Java 7 is SHA-256,
So one of the easiest way to sign android apk using jdk 7 is by adding the following to the build.xml
<presetdef name="signjar"> <signjar sigalg="MD5withRSA" digestalg="SHA1" /> </presetdef>
note: the above example is using Netbeans 7.1.2 with NbAndroid plugins.
Other IDE should adjust accordingly.