I have no idea how you searched on Google, but from the official Android Cursor documentation
public abstract int getColumnIndex (String columnName) Because: API Level 1
Returns a zero-based index for the given column name, or -1 if the column does not exist. If you expect the column to exist, use getColumnIndexOrThrow (String), which will make the error more Pure. Parameters columnName is the name of the target column. Returns
column index with a null value for the column name, or -1 if the column name does not exist.
And you really could not find it, but a bunch of useless things?
source share