Android examples for Database:Table Drop
build Delete Table Statement
import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import android.content.ContentValues; import android.database.Cursor; import android.util.Log; public class Main{ public static String buildDeleteTableStatement(Class<?> clazz) { if (clazz == null) { return null; }//from w w w. ja va2 s . com return "DROP TABLE IF EXISTS " + clazz.getSimpleName(); } }