如何添加PhoneGap应用程序在Androids共享界面 [英] How to add PhoneGap apps at Androids sharing interface

查看:78
本文介绍了如何添加PhoneGap应用程序在Androids共享界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个界面/ PhoneGap插件(或任何想法),将图片直接从图库传递到phonegap应用程序。



我已经使用cordova相机插件在我的应用程序,但我正在寻找一种方式,而不选择图像的应用程序。



为了使它更清楚一点,我正在寻找,请参阅下面的图片。



应用程序在Cordova 3.0上运行。



尊敬的,
彼得



解决方案

AndroidManifest.xml文件中的正确定义是

 < intent-filter> 
< action android:name =android.intent.action.SEND/>
< category android:name =android.intent.category.DEFAULT/>
< data android:mimeType =image / jpeg/>
< / intent-filter>

包括mimeType对我来说是伎俩!


I am looking for an interface / PhoneGap plugin (or any idea), to pass images from the gallery directly to the phonegap app.

I am already using the cordova camera plugin in my app, however I am looking for a way without selecting images out of the app.

To make it a bit more clearly what I am looking for, please see the image below.

The app runs on Cordova 3.0.

Thanks a lot!

Regards, Peter

解决方案

The correct definition in the AndroidManifest.xml file is

<intent-filter>
     <action android:name="android.intent.action.SEND" />
     <category android:name="android.intent.category.DEFAULT" />
     <data android:mimeType="image/jpeg" />
</intent-filter>

Including the mimeType did the trick for me!

这篇关于如何添加PhoneGap应用程序在Androids共享界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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