从图库图像中的“共享"按钮将照片/照片共享到我的 ionic 2 应用程序 [英] Sharing photo/photos to my ionic 2 application from “share” button in gallery images

查看:26
本文介绍了从图库图像中的“共享"按钮将照片/照片共享到我的 ionic 2 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我从我的安卓手机图库中选择图片并点击分享按钮时,会出现一个应用列表.在这里,可以共享那些选定的照片.我希望我的 ionic2 应用程序出现在该列表中,以便可以在我的应用程序中共享照片.

When I choose picture/pictures from gallery of my android phone and click on share button, a list of apps appear. Here, those selected photos can be shared. I want my ionic2 application to appear in that list so that photos can be shared in my app.

//07-03-2017 更新这个问题

//07-03-2017 updating this question

根据此问题的最新更新.

As per latest update to this question.

现在我的应用程序出现在该列表中.但我无法发布图片,因为我单击应用程序图标,它会将我带到应用程序的主页,而不是所需的页面!

Now my application appears in that list. but i am not been able to post pics , as i click the app icon , it takes me to the main page of the application and not the the desired page!

推荐答案

您需要更新您的 Android 清单并在您​​的 Activity 中处理接收到的意图.请看官方指南:https://developer.android.com/training/sharing/receive.html#update-manifest

You need to update your Android manifest as well as handle the received intent in your Activity. Please see the official guide: https://developer.android.com/training/sharing/receive.html#update-manifest

这篇关于从图库图像中的“共享"按钮将照片/照片共享到我的 ionic 2 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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