编程清除我自己的应用程序数据 [英] Clear my own apps data programatically

查看:110
本文介绍了编程清除我自己的应用程序数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个应用程序,我想,让用户能够建立,如果他们失败,一对夫妇尝试进入程序后登录,它会自动删除所有的数据,包括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屋!

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