If you're encrypting the data, you're encrypting it with some sort of key, which itself has to be stored on the device. Is that code sample using an Android library to get some secret key that is only accessible to the app in which it was generated, and no other app?