¡@

Home 

2014/10/16 ¤W¤È 08:11:16

android Programming Glossary: columntype

Cursor.getType() for API Level <11

http://stackoverflow.com/questions/11658239/cursor-gettype-for-api-level-11

can I accomplish this on pre Honeycomb 11 devices I've tried the following for int i 0 i cursor.getColumnCount i int columnType 1 try cursor.getInt i columnType Cursor.FIELD_TYPE_INTEGER catch Exception ignore try cursor.getString i columnType Cursor.FIELD_TYPE_STRING.. 11 devices I've tried the following for int i 0 i cursor.getColumnCount i int columnType 1 try cursor.getInt i columnType Cursor.FIELD_TYPE_INTEGER catch Exception ignore try cursor.getString i columnType Cursor.FIELD_TYPE_STRING catch Exception.. columnType 1 try cursor.getInt i columnType Cursor.FIELD_TYPE_INTEGER catch Exception ignore try cursor.getString i columnType Cursor.FIELD_TYPE_STRING catch Exception ignore1 try cursor.getFloat i columnType Cursor.FIELD_TYPE_FLOAT catch Exception..