I’ve came across code in android sources which implicitly check whether some numerical Id for a content provider is of type long or not. Sqlite however seems to have just “INTEGER” type.
So, Should on always use long data type to handle values from “INTEGER” columns in sqlite, just to be safe ?
In SQLite, all integer values have 64 bits.
Small values are stored more efficiently in the database file, but that is completely transparent.
So, if it is possible that your
_idcolumn has more than two billion values, then you should uselong.