get Short from Cursor by column name - Android Database

Android examples for Database:Cursor Get

Description

get Short from Cursor by column name

Demo Code


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

public class Main {
    protected static short getShort(Cursor mCursor, String column) {
        return mCursor.getShort(mCursor.getColumnIndex(column));
    }/*from w ww  .j a  va2  s .c o  m*/
}

Related Tutorials