get Column Type from Cursor - Android Database

Android examples for Database:Cursor Column

Description

get Column Type from Cursor

Demo Code


//package com.java2s;
import android.database.Cursor;

public class Main {
    public static int getType(Cursor c, String columnName) {
        return c.getType(c.getColumnIndex(columnName));
    }/*from ww w . j a v  a 2 s  .  co  m*/
}

Related Tutorials