编程清除我自己的应用程序数据 [英] Clear my own apps data programatically
问题描述
我开发一个应用程序,我想,让用户能够建立,如果他们失败,一对夫妇尝试进入程序后登录,它会自动删除所有的数据,包括preferences和数据库。
有一个简单的办法做到这一点还是我写code手动重置应用程序使用的一切。
感谢任何与此帮助
有一个简单的办法做到这一点还是我写code手动重置应用程序使用的一切。
块引用>您必须写code手动重置应用程序使用的一切。这应该只是删除文件极少数的问题。请确保您尝试删除前你的数据库被关闭。
I am developing an app where I want to allow the user to be able to set up that if they fail the login after a couple of attempts into the app, it will automatically delete all the data including the preferences and databases.
Is there a simple way to do this or do I have to write code to manually reset everything the app uses.
Thanks for any help with this
解决方案Is there a simple way to do this or do I have to write code to manually reset everything the app uses.
You have to write code to manually reset everything the app uses. This should just be a matter of deleting a handful of files. Make sure your database is closed before you try deleting it.
这篇关于编程清除我自己的应用程序数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!