Android Studio Wifi and SQL problems
Go to solution
Solved by colonel_mortis,
db.delete deletes all entries from the table, but it doesn't drop the table itself. This is what it sounds like you need, but your code calls onCreate, which should actually create the table. If your onCreate query doesn't specify CREATE TABLE IF NOT EXISTS then the app will crash when you run it. If you remove the onCreate call it should work though.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now