# Using android Cursor instead of sqlcipher cursor

**URL:** <https://discuss.zetetic.net/t/using-android-cursor-instead-of-sqlcipher-cursor/2244>\
**Category:** Issues\
**Created:** [July 7, 2017, 12:22pm UTC](https://discuss.zetetic.net/t/using-android-cursor-instead-of-sqlcipher-cursor/2244 "2017-07-07T12:22:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julio](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@Julio](https://discuss.zetetic.net/u/Julio)\
**Post date:** [July 7, 2017, 12:22pm UTC](https://discuss.zetetic.net/t/using-android-cursor-instead-of-sqlcipher-cursor/2244/1 "2017-07-07T12:22:40Z")

</div>

Hi,

Is it expected that we use Android’s Cursor (`android.database.cursor`) instead of SQLCipher’s (`net.sqlcipher.Cursor`) when using Content Providers methods? For example:

```
Cursor last_foreground = getContentResolver().query(.... 

```

Leads to a compilation error due to the different classes:  
`Error:(157, 64) error: incompatible types: android.database.Cursor cannot be converted to net.sqlcipher.Cursor`

Thanks

---

<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:** [July 10, 2017, 1:51pm UTC](https://discuss.zetetic.net/t/using-android-cursor-instead-of-sqlcipher-cursor/2244/2 "2017-07-10T13:51:31Z")

</div>

Hi @Julio

Yes, you will want to use the `android.database.Cursor` type instead in that use case.
