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; /*from w w w.jav a 2s . co m*/ import java.io.File; import java.util.List; import android.database.sqlite.SQLiteDatabase; import com.parnswir.unmp.core.DatabaseUtils; public class FileRemovalThread extends FileCrawlerThread { public FileRemovalThread(SQLiteDatabase db, List<String> folders) { super(db, folders); } public FileRemovalThread(SQLiteDatabase db, String folder) { super(db, folder); } protected void handleFile(File file) { if (stop) return; FileHandler fileHandler = getFileHandlerFor(file); if (DatabaseUtils.fileAlreadyInDatabase(file.getAbsolutePath(), db)) { fileHandler.deleteFromDatabase(file); } } }