发布时间: 2012-07-30 16:19:05 作者: rapoo
android程序查包含"*" "#"的出的解法代提示:E/AndroidRuntime(1145): Caused by: android.database.sqlite.SQLiteException: near "*": syntax error: , while compiling: SELECT numbertype, new, duration, _id, numberlabel, name, number, type, date FROM calls WHERE (number = **9) ORDER BY date desc解: strQuery = "number = " + strQueryNumber;callLogCursor = TApplication.nowTApplication.getContentResolver().query(CallLog.Calls.CONTENT_URI, null, strQuery, null,"date desc");查代改成:strQuery = "number = " + "'strQueryNumber'";callLogCursor = TApplication.nowTApplication.getContentResolver().query(CallLog.Calls.CONTENT_URI, null, strQuery, null,"date desc");:因"*"里的字(未),所有查找是法,只需要拼接字符串,把"*"改成非字即可
ps:模器不知道何直接拔打字+"#"清空屏幕,而只能打"#"的
android快2年了这个有关问题大家给个
android 名词征集
android TimePicker 控件自定义式样
Android实现读物翻页效果-扩展版(转)
新人自学中,该如何处理
android触控,先懂得MotionEvent(一)
android应用开发:第一次打开app时是欢
求解:android 4.0读写HID设备解决方案
seekbar,该怎么处理
Android 开发类似微信的程序,该如何处