Back to project page unmp.
The source code is released under:
MIT License
If you think the Android project unmp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.parnswir.unmp.media; /* w w w.j a va 2 s .com*/ import java.io.File; import com.parnswir.unmp.core.C; import com.parnswir.unmp.core.DatabaseUtils; import android.content.ContentValues; public class PlaylistHandler extends FileHandler { @Override public void saveToDatabase(File file) { ContentValues cv = new ContentValues(); cv.put(C.COL_ID, DatabaseUtils.getNextIDForTable(C.TAB_PLAYLISTS, getDb())); cv.put(C.COL_FILE, file.getAbsolutePath()); getDb().insert(C.TAB_PLAYLISTS, null, cv); } @Override public void updateDatabaseEntryFor(File file) { return; } @Override public void deleteFromDatabase(File file) { getDb().delete(C.TAB_PLAYLISTS, C.COL_FILE + " = ?", new String[] {DatabaseUtils.normalize(file.getAbsolutePath())}); } }