如何建立在Android社交网络应用 [英] How to create a social network app on Android

查看:146
本文介绍了如何建立在Android社交网络应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立为Android社交网络应用程序。 但是,我不知道从哪里开始。我试图在 http://developer.android.com 和许多其他的教程来搜索。但是,我不明白的数据存储。 在Web开发(PHP)例如,我们需要服务器和数据库(MySQL的)。 如何在Android应用程序? 我需要知道在为Android开发的社交网络应用程序的概念, 如存储用户的文章,评论,上传照片,谷歌地图的数据等。 我不想code,我所要求的思想和理念,在为Android开发的社交网络应用程序。

I want to build a social network app for Android. But, I don't know where to start. I tried to search in http://developer.android.com and many other tutorials. But, I didn't understand in data storage. In web development (PHP) for example, we need server and database (MySQL). How about the android app? I need to know the concept in developing social network app for Android, such as to store users' posts, comments, uploaded photos, google map data and so on. I don't want the code, I'm asking for idea and concept in developing social network app for Android.

到合适的网站的任何链接,我开始将AP preciated。 谢谢你。

Any links to the suitable sites for me to start would be appreciated. Thanks.

推荐答案

您可以在Android手机上使用的文件存储(SD卡),preferences(用于设置等等)或SQLLIte进行存储。但是,如果它是一个真正的社会的应用程序,我怀疑你希望用户能够互动。因此,等效采用PHP和MySQL,您的用户可以使用他们的浏览器(手机在这种情况下)使用的应用程序,但他们使用你的服务器来存储数据(朋友,喜欢,转推,whathaveyous)。

You can use file-storage (sd-card), preferences (for settings and such) or SQLLIte for storage on an Android phone. But if it is an actually social app, I suspect you want users to be able to interact. Therefore, equivalent with php and mysql, your users might use their browser (phone in this case) to use the app, but they use your server to store the data (friends, likes, retweets, whathaveyous).

所以,你需要做的这个工作是

So what you need to do for this to work is

  • 请就像正常您存储数据的服务器。我建议MySQL作为你似乎知道如何工作的
  • 请一个API将数据添加到该服务器。我建议在PHP中的REST风格的API,再次你似乎知道如何工作的
  • 在编写你的应用程序。每当你想交互(比如象后),你发送一个请求槽的API,并节省您的操作到数据库中。
  • 您的其他用户可以看到像因为自己的手机获得他们的信息槽的API构成了同一个数据库。

现在的设置(多少次的应用程序检查新​​邮件)保存在preferences文件(你可以发现,开发商的网页上),以及一些额外的东西可能会被保存在SD卡上(图像等)。

Now the settings (how many times does the app check for new messages) are saved in a preferences file (you can find that on the developer pages), and some extra things might be saved on the sd-card (images etc).

因此​​,APP的部分是很容易的,并没有什么问题使用说明书,你需要做的我上面描述一下社会的一部分搞清楚。是的,这是一些工作,但有足够的使用一个应用程序写PHP MySQL的互动。

So the APP part is quite easy, and no problem to figure out using the manual, the SOCIAL part you need to do what I described above. Yes this is some work, but there is enough written about php-mysql interaction using an app.

这篇关于如何建立在Android社交网络应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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