java如何从游标中检索字符串数组
我有一个游标,名为passableCursor,包含多个字段,但是一个字段Components包含多个值,我无法从中获取所有值
从名称检索的示例
Log.d("recipeName", passableCursor.getString(passableCursor.getColumnIndex("name")));
游标结构示例
name-> name1
description -> description1
ingredients -> ingredient1, ingredient2, ingredient3.
我一直在使用getString
作为名称和描述字段。然而,我很难从配料中获得价值。似乎没有getStringArray
方法
共 (0) 个答案