According to Sqlite document NUMERIC type could end up being stored as TEXT, INTEGER or REAL depending on the value.
On the other hand android's Cursor class provides all sort of getInt
, getFloat
and getString
but it lacks anything like a getNumeric
method.
Now what would be the safest way of extracting NUMERIC values in android? Should one try getType
first and then use an appropriate get method or there is a better way?
Aucun commentaire:
Enregistrer un commentaire