I parse several EditText each responsible for the column.

After that, I collect from them a request for insertion into the database.

But the problem is that VARCHAR must be quoted. How to programmatically determine the type of column from the cursor?

    1 answer 1

     cursor.getType(i); 

    Returns int:

    Cursor.FIELD_TYPE_NULL

    Cursor.FIELD_TYPE_INTEGER

    Cursor.FIELD_TYPE_FLOAT

    Cursor.FIELD_TYPE_STRING

    Cursor.FIELD_TYPE_BLOB