Hi,

In my application i take some input from the user and store it in
sqlite database. Now, if on second visit to save records menu, I give
the previous file name then the database holding above file should be
dropped and a new database should be made.

I do this by :

public void deleteRecord()
    {
        try
        {
                db.execSQL("DROP TABLE IF EXISTS " +DATABASE_TABLE);
                                db.execSQL("VACUUM");
                }
        catch(SQLException sqle)
        {
                                sqle.printStackTrace();
        }

    }

 However, on doing this the previous records are not getting deleted.
With this the new records get appended to the previous ones.

Can anyone please help me with this??

Thanks in advance.

Best Regards,
Zhubham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to