简体   繁体   English

android-用相机拍照并与所有人共享

[英]android - take a picture with the camera and share it with all

I would like to develop an app on Android that allows me to take a picture with the camera and share it instantly with all the people that have my app. 我想在Android上开发一个应用程序,使我可以用相机拍照并立即与拥有我的应用程序的所有人共享。 it is clearly a client / server application. 它显然是一个客户端/服务器应用程序。

until now I did this. 直到现在我都做到了。 1) I took a web space on altervista with db 2) I developed the client side so that a photo taken with the application to be put on the server (in db) 1)我使用db在Altervista上占用了一个Web空间2)我开发了客户端,以便将与应用程序一起拍摄的照片放到服务器上(在db中)

I'll have to do this: 1) each time a picture is stored in the database part of a notification to all those have the app. 我将必须执行以下操作:1)每次将图片存储在数据库中,并向所有拥有该应用程序的人发送通知。 2) when other users launch the app's automatic download of the pictures that have not yet displayed. 2)当其他用户启动应用程序的自动下载时,尚未显示的图片。

the mechanism is somewhat reminiscent to facebook. 该机制在某种程度上让人联想到facebook。 but I have many doubts about what I'm doing. 但我对自己的工作有很多疑问。

there is a better way to develop this type of app? 有没有更好的方法来开发这种类型的应用程序? Also if you have suggestions about the kind of architecture to use. 另外,如果您对要使用的体系结构类型有建议。 By the time I got a web space on altervista but after that I think I'll take a dedicated client or a cloud. 到我在altervista上获得一个Web空间时,但是在那之后,我想我将使用一个专用的客户端或一个云。 mmm.. I feel that is not the best way to develop my app. 嗯,我觉得这不是开发我的应用程序的最佳方法。

thanks for any suggestions 感谢您的任何建议

I recommend do it as following. 我建议按以下步骤进行操作。

Create one time value in server and change it to time new picture loaded. 在服务器中创建一个时间值,并将其更改为加载新图片的时间。

And in your apps repeatedly check that value. 并在您的应用中反复检查该值。 If that value is grater than time in app get last image load new image 如果该值大于应用程序中的时间,则获取上一张图片加载新图片

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

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