Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我搜索了android文档,但没有找到....
有什么方法可以知道有一列的元素数量吗?如果没有,我怎么能得到它?
尝试一下:
DatabaseUtils.queryNumEntries(mDb,DATABASE_YOUR_TABLE);
queryNumEntries