Example usage for android.database Cursor getString

List of usage examples for android.database Cursor getString

Introduction

In this page you can find the example usage for android.database Cursor getString.

Prototype

String getString(int columnIndex);

Source Link

Document

Returns the value of the requested column as a String.

Usage

From source file:Main.java

public static String getString(String columnName, Cursor cursor) {
    return cursor.getString(cursor.getColumnIndexOrThrow(columnName));
}

From source file:Main.java

protected static String getString(Cursor mCursor, String column) {
    return mCursor.getString(mCursor.getColumnIndex(column));
}

From source file:Main.java

public static String getString(Cursor cursor, String column) {
    return cursor.getString(cursor.getColumnIndex(column));
}

From source file:Main.java

public static String getStringOnCursor(Cursor cursor, String columnName) {
    return cursor.getString(cursor.getColumnIndex(columnName));
}

From source file:Main.java

private static String getStringFromCursor(Cursor cursor, String columnName) {
    return cursor.getString(cursor.getColumnIndex(columnName));
}

From source file:Main.java

public static Uri getMediaUri(Cursor cursor, Uri uri) {
    String id = cursor.getString(cursor.getColumnIndex(MediaColumns._ID));
    return Uri.withAppendedPath(uri, id);
}

From source file:Main.java

public static String getNonNullString(Cursor cursor, int index) {
    String result = cursor.getString(index);
    return result != null ? result : "";
}

From source file:Main.java

private static File getCursorFile(Cursor cursor, String column) {
    return new File(cursor.getString(cursor.getColumnIndexOrThrow(column)));
}

From source file:Main.java

private static String getCursorString(Cursor cursor, String column) {
    return cursor.getString(cursor.getColumnIndexOrThrow(column));
}

From source file:Main.java

public static String getString(Cursor cursor, String columnName) {
    return cursor.getString(cursor.getColumnIndexOrThrow(columnName));
}