lixuan deng lixuan deng - 7 months ago 31
Android Question

How to judge whether the database needs to upgrade in Android?

I'm a new hand,and I want to know how to judge whether the database on app needs to update.Is it to compare the version of server with the version of database on app or anything else?Hope someone could help me.Show me the method or the specific code!Thanks!

zys zys

you can judge the database version in the onUpgrade