Android 我想计算azure表中返回的行数

Android 我想计算azure表中返回的行数,android,azure,azure-sql-database,azure-mobile-services,Android,Azure,Azure Sql Database,Azure Mobile Services,我想计算azure表返回的字符串数。所以我找到了下面的代码并尝试应用它。守则: final MobileServiceList<Crime> result = mToDoTable.includeInlineCount().execute().get(); int count = result.getTotalCount(); final MobileServiceList result=mtodatable.includeInlineCount().execute().get()

我想计算azure表返回的字符串数。所以我找到了下面的代码并尝试应用它。守则:

final MobileServiceList<Crime> result = mToDoTable.includeInlineCount().execute().get();
int count = result.getTotalCount();
final MobileServiceList result=mtodatable.includeInlineCount().execute().get();
int count=result.getTotalCount();
当我应用代码时,它会给我一个错误。你能帮我吗,我应该用什么来代替犯罪。

试试这个

int count = mToDoTable.execute().get().getTotalCount();
这肯定会给你所需的答案。

试试这个

int count = mToDoTable.execute().get().getTotalCount();

这肯定会为您提供所需的答案。

错误内容是什么?错误内容是什么?您能告诉我如何在代码中使用它吗,谢谢我尝试了不同的方式使用它,但我没有工作。您能告诉我如何在代码中使用它吗,谢谢我尝试了不同的方式使用它,但我没有工作