Why not turn this into a nice, easy to use wrapper API? Rather than make people dig through this example? I think a ton of people would be interested in having pre-4.3 support for KeyStore