/*
* Copyright (C) 2010 Josh Guilfoyle <jasta@devtcg.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2, or (at your option) any
* later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*/
package org.devtcg.five.provider.util;
import org.devtcg.five.provider.Five;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
public class Songs
{
public static Uri makeUri(long songId)
{
return ContentUris.withAppendedId(Five.Music.Songs.CONTENT_URI, songId);
}
public static Cursor getSong(Context context, long songId)
{
return context.getContentResolver().query(makeUri(songId),
null, null, null, null);
}
}