return sqlHelper.database.rawQuery("select * from users where tag like ? and name like ?",
new String[] {tag, "%" + constraint.toString() + "%"});
return sqlHelper.database.rawQuery("select * from users where tag like ? and name like ?",
new String[] {selTag, "%" + constraint.toString() + "%"}); //final String[] selectionArgs = {tag};
@Override
public View getChildView(int groupPosition, final int childPosition,
boolean isLastChild, View convertView, ViewGroup parent) {
final String childText = (String) getChild(groupPosition, childPosition);
if (convertView == null) {
LayoutInflater infalInflater = (LayoutInflater) this._context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
convertView = infalInflater.inflate(R.layout.list_item, null);
}
TextView txtListChild = (TextView) convertView
.findViewById(R.id.lblListItem);
txtListChild.setText(childText);
return convertView;
}