安卓sqlite怎么获得时间date
sqlite.cursor=sqlite.database.query(false,"rj",newString[]{"date","tianqi","xingqi","...
sqlite.cursor = sqlite.database.query(false, "rj", new String[]{"date","tianqi","xingqi","rj"}, null, null, null, null, null, null, null);
if(sqlite.cursor.moveToNext()){
HashMap<String, String> hashMap = new HashMap<String, String>();
hashMap.put("date", sqlite.cursor.get/*这里怎么写的啊*/);
} 展开
if(sqlite.cursor.moveToNext()){
HashMap<String, String> hashMap = new HashMap<String, String>();
hashMap.put("date", sqlite.cursor.get/*这里怎么写的啊*/);
} 展开
2个回答
2014-04-09
展开全部
hashMap.put("date",cursor.getString(cursor.getColumnIndex("date")))
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询