在SQLite

时间:2018-07-30 12:50:14

标签: android sqlite android-sqlite

我只想从String[] groupFrom = new String[]{Database.DATABASE_GROUP_1};中选择NON NULL字符串

传递给adpater:

  SimpleCursorTreeAdapter simplecursortreeAdapter = new ExpandableListViewAdapter(
                this,
                cursor,
                R.layout.list_group,
                groupFrom,
                groupTo,
                R.layout.list_child,
                childFrom,
                childTo
        );

1 个答案:

答案 0 :(得分:0)

通过类似以下内容循环浏览

if (groupform[i] != null)
// Do stuff

我正在从这里进行调整:

How can I check whether an array is null / empty?