# How to properly use SQLCipher 4.5.0 on Android?

**URL:** <https://discuss.zetetic.net/t/how-to-properly-use-sqlcipher-4-5-0-on-android/5262>\
**Category:** SQLCipher\
**Created:** [January 19, 2022, 10:47am UTC](https://discuss.zetetic.net/t/how-to-properly-use-sqlcipher-4-5-0-on-android/5262 "2022-01-19T10:47:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![developernotes](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.zetetic.net/developernotes/32/1309_2.png) [@developernotes](https://discuss.zetetic.net/u/developernotes)\
**Post date:** [February 4, 2022, 6:24pm UTC](https://discuss.zetetic.net/t/how-to-properly-use-sqlcipher-4-5-0-on-android/5262/3 "2022-02-04T18:24:07Z")

</div>

Hi @robertszuba

My apologizes for the delayed response. When you execute `PRAGMA cipher_migrate`, you will want to check the return value (i.e., `0` is success). [Here](https://github.com/sqlcipher/sqlcipher-android-tests/blob/master/app/src/main/java/net/zetetic/tests/CipherMigrateTest.java#L24-L26) is an example within our Android test suite. In terms of how you should communicate a migration error state, that would be very application specific. We’ve shared general guidance for upgrading to the major version 4 of SQLCipher [here](https://discuss.zetetic.net/t/upgrading-to-sqlcipher-4/3283).

---

_[View the full topic](https://discuss.zetetic.net/t/how-to-properly-use-sqlcipher-4-5-0-on-android/5262)._
