10 2014 档案

Android Sqlite IN, NOT IN syntax --- not int (?)
摘要:处理where column_name not in (?):如果后面是一串字符或数字组合时,不可以直接用(?)来处理,而应该将这些字符组合直接作为条件字符串的一部分。1. where column_name not in ('name1','name2')2.db.query(TABLE, new... 阅读全文

posted @ 2014-10-25 16:53 veins 阅读(721) 评论(0) 推荐(0)

TextView with SingleLine as true and Gravity as Center not passing the events to the ViewPager if it has a Click Event
摘要:android:singleLine="true"forcesandroid:scrollHorizontallyto be set to true, and according to my tests only if you changeandroid:gravity(i.e. default g... 阅读全文

posted @ 2014-10-24 10:17 veins 阅读(236) 评论(0) 推荐(0)

Android 开发中使用 SQLite 数据库
摘要:SQLite 介绍SQLite 一个非常流行的嵌入式数据库,它支持 SQL 语言,并且只利用很少的内存就有很好的性能。此外它还是开源的,任何人都可以使用它。许多开源项目((Mozilla, PHP, Python)都使用了 SQLite.SQLite 由以下几个组件组成:SQL 编译器、内核、后端以... 阅读全文

posted @ 2014-10-10 10:02 veins 阅读(161) 评论(0) 推荐(0)

Android-计算两个日期之间间隔的天数
摘要:要计算两个日期之间间隔的天数,必须把两个日期转换成统一的时间戳,然后计算其毫秒差,再将毫秒差转换成天数。System.out.print("开始时间:"); String str1 = beginTime; // "yyyyMMdd"格式 如 20131022 ... 阅读全文

posted @ 2014-10-03 10:54 veins 阅读(2792) 评论(0) 推荐(1)

导航