There is something that I cannot understand about Cursor.getType() , can anyone explain why I get this stupid exception when I want to get the column type if the cursor has no record but there are columns? I mean, if the cursor has a record, there is no problem, I can use the getType method to get the column type without any problems, but if there is no record, this throws this exception. The question is, why do I need records to get the type of columns? Why just knowing the column name is not enough to get its types? This is ridiculous?
source share