public void OnQueryComplete(int token, Java.Lang.Object cookie, Android.Database.ICursor cursor)
        {
            Console.WriteLine("OnQueryComplete!");
            if (Activity == null)
            {
                return;
            }

            Console.WriteLine("Is Sessions? = " + TracksFragment.NEXT_TYPE_SESSIONS.Equals(mNextType));

            Activity.StartManagingCursor(cursor);
            mAdapter.SetHasAllItem(true);
            mAdapter.SetIsSessions(TracksFragment.NEXT_TYPE_SESSIONS.Equals(mNextType));
            mAdapter.ChangeCursor(cursor);
        }
        public void OnQueryComplete(int token, Java.Lang.Object cookie, ICursor cursor)
        {
            if (Activity == null || cursor == null)
            {
                return;
            }

            mCursor = cursor;
            Activity.StartManagingCursor(mCursor);

            // If there was a last-opened track, load it. Otherwise load the first track.
            cursor.MoveToFirst();
            String lastTrackID = UIUtils.GetLastUsedTrackID(Activity);

            if (lastTrackID != null)
            {
                while (!cursor.IsAfterLast)
                {
                    if (lastTrackID.Equals(cursor.GetString(TracksAdapter.TracksQuery.TRACK_ID)))
                    {
                        break;
                    }
                    cursor.MoveToNext();
                }

                if (cursor.IsAfterLast)
                {
                    LoadTrack(null, mAutoloadTarget);
                }
                else
                {
                    LoadTrack(cursor, mAutoloadTarget);
                }
            }
            else
            {
                LoadTrack(null, mAutoloadTarget);
            }

            mAdapter.SetHasAllItem(true);
            mAdapter.SetIsSessions(TracksFragment.NEXT_TYPE_SESSIONS.Equals(mNextType));
            mAdapter.ChangeCursor(mCursor);
        }