Home | History | Annotate | Download | only in music

Lines Matching refs:Cursor

24 import android.database.Cursor;
131 protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
132 if (cursor != null && cursor.moveToFirst()) {
134 int titleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE);
135 int artistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST);
136 int idIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID);
137 int displaynameIdx = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME);
140 mMediaId = cursor.getLong(idIdx);
144 String title = cursor.getString(titleIdx);
147 String artist = cursor.getString(artistIdx);
151 String name = cursor.getString(displaynameIdx);
155 Log.w(TAG, "Cursor had no names for us");
158 Log.w(TAG, "empty cursor");
161 if (cursor != null) {
162 cursor.close();