This is a small example of an AES encryption for Android, this example works on pre 4.2 version and after also.