简体   繁体   English

初始化用户对象onCreate android

[英]Initializing user object onCreate android

So I'm struggling with this algorithm design. 因此,我正在为这种算法设计而苦苦挣扎。 I'm writing an android app that has a user object. 我正在编写一个具有用户对象的android应用。 This object has a list of friends. 该对象有一个朋友列表。 It also can gain new friends using wifi direct and interacting with other users who also have the app. 它还可以直接使用wifi并与也有该应用的其他用户互动,从而结交新朋友。 What's the best way to: listen for requests update the database. 最好的方法是:侦听请求以更新数据库。

The app will also have a web version, they both use the same MySQL database to store the data. 该应用程序还将具有网络版本,它们都使用相同的MySQL数据库来存储数据。

This is for you, my Friend! 这是给你的,我的朋友!

UserGrid is an opensource library from Apigee which does this. UserGridApigee的开源库,它可以执行此操作。 The full monty, users groups, social graph, the likes, storing user data. 完整的资金,用户组,社交图谱之类的信息,用于存储用户数据。 Everything. 一切。 Check it out! 看看这个!

PS: I'm in no way related to the Apigee company. PS:我与Apigee公司没有任何关系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM