申请权限 [英] Application permissions

查看:94
本文介绍了申请权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已允许我的应用程序的用户启用查看相册的权限.

I have enabled a user of my application to enable permissions to view photo albums.

但是,我真正想要的不仅是使应用程序能够访问相册,而且使用户能够从相册中选择一个图像,然后该应用程序的其他用户可以看到该图像.

However, what I really want is to not only enable the application to access the photo albums but to enable the user to select one image from the album that other users of the application can then see thereafter.

这是一个竞赛应用程序,因此用户可以选择一个图像并将该图像包含在竞赛中,但是该应用程序的用户必须能够查看以便对其进行投票.

This is a competition application so the user selects an image and that image is included in the competition but users of the application must be able to view so as they can vote on it.

我必须从相册中获取图像并上传到托管服务器,还是可以在附近进行?

Must I take the image from the photo album and upload to a hosting server or is there away I can do this?

推荐答案

您需要做的是在服务器中使用一个应用程序来保存用户选择的照片.然后,您将这张照片的引用保存到数据库中,当其他用户访问您的应用程序时,您将在数据库中请求所有这些照片,并将它们显示给用户.

What you need to do is an application in your server which saves the photo the user has selected. Then you save the reference of this photo into a database and when other users comes to your application you request all of these in the database and show them back to the user.

这是一个非常基本的编程结构,因此Facebook通过许多配置文件为您提供了大量共享数据.另一方面,您负责处理这些数据,如何使用它们以及在哪些应用程序中实现它.请记住,在执行此操作时,必须提供隐私政策和使用条款文档,以免对您造成任何法律后果.

This is a pretty basic programming structure, so Facebook serves you with a lot of shared data through many profiles. On the other hand, you are in charge of what you do with these data, how you use it and in which applications you implement it. Remember when you do this, you have to provide a privacy policy and a terms of use document to avoid any legal consequence to your end.

这篇关于申请权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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