简体   繁体   English

如何从其他应用程序将图像共享到我的Cordova / PhoneGap应用程序?

[英]How can I share an Image to my Cordova/PhoneGap App from another App?

I have a Cordova/PhoneGap App which deals with photos. 我有一个处理照片的Cordova / PhoneGap应用程序。 What I want is to make my app appears in the sharing options, when other apps want to share a photo to other apps. 我想要的是让我的应用程序出现在共享选项中,当其他应用程序想要将照片分享给其他应用程序时。

Here is an example for such a sharing dialog: 以下是此类共享对话框的示例:

在此输入图像描述

How can I make that my Cordova/PhoneGap App appears in a Photo Sharing Options of other Apps? 如何才能使我的Cordova / PhoneGap应用程序出现在其他应用程序的照片共享选项中?

Edit: When I click on share to Instagram in some photo apps I get the following popup. 编辑:当我在某些照片应用程序中点击分享到Instagram时,我会得到以下弹出窗口。 How can I make that my app does appear in this share popup too? 如何让我的应用程序确实出现在此共享弹出窗口中?

在此输入图像描述

For iOS it's been answered on this thread 对于iOS,它已在此主题上得到解答

My app inside iMessage UIActivityViewController 我的应用程序在iMessage UIActivityViewController中

on this one you have even more info 在这一个你有更多的信息

How do I associate file types with an iPhone application? 如何将文件类型与iPhone应用程序相关联?

For android you can follow the instructions here http://developer.android.com/training/sharing/receive.html 对于Android,您可以按照http://developer.android.com/training/sharing/receive.html上的说明进行操作

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

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