jjzjj

GoalDescriptor

全部标签

Android - 在 contentProvider 中选择最大值

我尝试在我的自定义内容提供程序上运行此查询。cursor=activity.getContentResolver().query(GoalDescriptor.CONTENT_URI,"max(priority)",null,null,null);获取priorityint列的最大值。我也试过:cursor=activity.getContentResolver().query(GoalDescriptor.CONTENT_URI,null,"max(priority)",null,null);没有成功。此代码返回此异常:java.lang.IllegalArgumentExcepti

Android - 在 contentProvider 中选择最大值

我尝试在我的自定义内容提供程序上运行此查询。cursor=activity.getContentResolver().query(GoalDescriptor.CONTENT_URI,"max(priority)",null,null,null);获取priorityint列的最大值。我也试过:cursor=activity.getContentResolver().query(GoalDescriptor.CONTENT_URI,null,"max(priority)",null,null);没有成功。此代码返回此异常:java.lang.IllegalArgumentExcepti