通过图库图像中的“分享”按钮将照片/照片分享到我的离子2应用程序 [英] Sharing photo/photos to my ionic 2 application from “share” button in gallery images
问题描述
当我从Android手机的图库中选择图片/图片并点击分享按钮时,会出现一个应用列表。在这里,可以共享这些选定的照片。我希望我的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清单以及处理活动中收到的意图。请参阅官方指南: 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
这篇关于通过图库图像中的“分享”按钮将照片/照片分享到我的离子2应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!