[转]从 android sqlite 中获取boolean值

原文:http://stackoverflow.com/questions/4088080/android-sqlite-get-boolean-from-database

 

 

目标:从 android sqlite 中获取boolean值

方法:

boolean value = cursor.getInt(boolean_column_index)>0;

 

IT技术网站推荐 ]

(1)StackOverflow : http://stackoverflow.com/

(2)GitHub : https://github.com/

 

posted @ 2013-02-26 14:55  Binary-Stream  阅读(979)  评论(0编辑  收藏  举报