Android的访问相册 [英] android access gallery photos

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

问题描述

我试着去弄清楚如何从Android默认的库访问的照片,并将它们发送到我的server.at被用户点击上传按钮,然后选择器来什么我code是做一会儿,然后他选择照片然后我发送照片到服务器。但我想要的是用户点击上传按钮,从他的画廊的图像都将没有显示他的任何选择被发送到服务器。你可以说,它就像一个备份app.the用户点击备份映像和他的所有图像立即发送给服务器。那可能吗?我怎么可以把所有的照片没有给他选择或选择器?


解决方案

  

画廊默认显示其中存储的任何文件夹中的所有影像
  上手机。所以你必须知道所有图像的URI的电话,然后阅读
  这些图像发送到服务器。


Im trying to figure out how to access photos from the android default gallery and send them to my server.at the moment what my code is doing is user clicks the upload button then chooser comes and then he selects the photo and then i am sending the photo to the server. but what i want is the user clicks the upload button, all images from his gallery will be sent to the server without showing him the choice of any. you can say its much like a backup app.the user clicks backup images and all his images immediately sent to server. is that possible? how can i take all photos without giving him choice or chooser ?

解决方案

Gallery by Default display all images which are stored in any folder on phone. so you have to know URI of all images on phone and then read and send these images to server.

这篇关于Android的访问相册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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