Android应用程序:没有一个服务器管理用户帐户信息 [英] Android App : Managing user account information without a server

查看:93
本文介绍了Android应用程序:没有一个服务器管理用户帐户信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一个Android应用程序,这将需要创建用户帐户和对应用程序的用户的一些信息的设计。而在互联网和开发商现场研究,我得到了IM pression,要维护数据库,你必须有一台服务器。

I am thinking about the design of an android application which will need to create user accounts and have some information about the app users. While researching in the internet and the developer site, I got the impression that to maintain the database , you have to have a server.

如果我不想维护自己的服务器的帐户信息(即我不愿意维护我自己的服务器为这个),做什么选择我都和这将是他们的缺点(如果有的话)。

What if I don't want to maintain the account information in my own server (i.e. I am not willing to maintain my own server for this), what options do I have and what will be their drawbacks (if any).

如果没有其他选择,只能使用一个服务器,那么我可以得到的建议,我怎么可以修改我的设计,这样我就不必使用一台服务器。

If there is no other choice but to use a server, then can I get suggestions as to how can I modify my design so that I don't have to use a server.

我在这个领域是新手,所以我会AP preciate建议。

I am a novice at this field, so I would appreciate advice.

在此先感谢!

推荐答案

创建凭证表在这个表中创建相应的列一样的用户名,密码etc..here如果您已注册用户外部数据库文件然后存储在凭证表的用户信息复制。最后,在资产产生的文件夹数据库,然后使用SqliteOpenHelper类副本外部数据库,以电话memory.Here需要维护的注册页与conditions.If用户与你的条件完成的注册程序,然后他/她的个人资料存储在凭证表。当用户想要的登录的应用程序请查看用户名并在密码 凭证表

Create external database file with credential table in this table create appropriate columns like username,password etc..here if you have registered users then store those users details in credential table.Finally copy that database in assests folder then using SqliteOpenHelper class copy that external database to phone memory.Here you need to maintain registration page with conditions.If the user completes the registrations procedure with your conditions then store his/her details in credential table.When user wants to login to the App please check the username and password in credential table.

这篇关于Android应用程序:没有一个服务器管理用户帐户信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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