我如何添加一个"分享"选择到iOS / iPhone或Android的图片库?图片库、iOS、QUOT、Android

2023-09-06 18:04:39 作者:荒淫无度是她一生的梦。

我想补充无论是共享选项,iOS或Android手机的画廊,否则另一个菜单选项将执行相同的任务。我想开始与iOS,如果它是可能的。例如,如果你去你的图片库的iPhone或Android手机上,有一个分享按钮,你可以根据手机上选择用电子邮件发送时,Picasa,Facebook,微博等。我需要添加类似的东西,把它分享给我自己的网站或应用程序。

I'm trying to add either a "share" option to iOS or Android phone galleries, or else another menu option that will perform the same task. I would like to start with iOS if it is possible. For example, if you go to your image gallery on an iPhone or Android phone, there is a share button, and you can choose Email, Picasa, Facebook, Twitter, etc depending on the phone. I need to add something like that to share it to my own web site or app.

如果任何人有连一个起点的主意,开始读这将是有益的!

If anyone has an idea of even a starting point to start reading that would be helpful!

推荐答案

在iOS上,您可以使用ShareKit:

on iOS, you can use ShareKit:

ShareKit:投递Share功能为所有iOS应用

在Android上,使用ACTION_SEND:

on Android, use ACTION_SEND:

使用ACTION_SEND意向 Android中共享内容

Sharing content in Android using ACTION_SEND Intent