public class SQLiteContentHelper
extends java.lang.Object
| Constructor and Description |
|---|
SQLiteContentHelper() |
| Modifier and Type | Method and Description |
|---|---|
static AssetFileDescriptor |
getBlobColumnAsAssetFile(SQLiteDatabase db,
java.lang.String sql,
java.lang.String[] selectionArgs)
Runs an SQLite query and returns an AssetFileDescriptor for the
blob in column 0 of the first row.
|
public static AssetFileDescriptor getBlobColumnAsAssetFile(SQLiteDatabase db, java.lang.String sql, java.lang.String[] selectionArgs) throws java.io.FileNotFoundException
db - Handle to a readable database.sql - SQL query, possibly with query arguments.selectionArgs - Query argument values, or null for no argument.java.io.FileNotFoundException - If the query returns no results or the
value of column 0 is NULL, or if there is an error creating the
asset file descriptor.