在进行数据库查询的时候,判断某一条值是否存在的时候,抛出了下面的异常
java.lang.IllegalArgumentException: Cannot bind argument at index 1 because the index is out of range.
The statement has 0 parameters.
检查好久都没发现,原来是selection没有加“=?”
Cursor cursor = mResolver.query(UserProvider.CONTENT_URI, null,
UserInfo_tb.USER_ID + "=?", new String[] { "admin" }, null);