如何删除数据而重新安装应用程序 [英] How to delete the data while re-install the app

查看:123
本文介绍了如何删除数据而重新安装应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢previous回复,

Thanks for previous replies,

是可以删除的SQLite存储的内容一旦重新安装应用程序。我在数据库中存储的数据,一旦我再次sqlite的还是重新安装相同的应用程序中,previous数据存储。我想删除所存储的内容,而重新安装应用程序。我不知道这件事。

is it possible to delete the stored content from sqlite once re-install the application. I am storing data in database, once i re-install the same app again, the previous data still stores in sqlite. i want to delete the stored content while re install the app. i am not sure about this.

推荐答案

感谢所有的答复,

我维护版本code对于所有的构建,一旦我重新安装应用程序,我检查版本,如果我找到的版本变化,我只是删除数据库。这种情况只适用于覆盖安装APK(即无未安装应用程序)。当我们做了一个卸载,应用程序的内部数据和源码生病自动删除。

I maintain the Version code for all the builds, once i re-install the application, i check the version, if i found the version changes, i simply remove the DB. this case only applicable for overriding the install of APk(ie without un-installing the application). When we made a uninstall, the internal data and sqlite for the application ill automatically deleted.

这篇关于如何删除数据而重新安装应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆