PhoneGap的+ JQuery_Mobile:如何通过点击按钮获取从照片/图片库图片 [英] PhoneGap+JQuery_Mobile: How to Get images from the Photo/image Gallery by click on a button

查看:222
本文介绍了PhoneGap的+ JQuery_Mobile:如何通过点击按钮获取从照片/图片库图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了一个的Andr​​iod的 PhoneGap的应用程序,并使用jQuery Mobile和Java脚本,iPhone

I have implemented a PhoneGap application for andriod and iPhone using jQuery Mobile and java script,

在我的应用程序的一部分,我有相机的选择。我需要使用图像中的位置来放置。这就是结束。

In the part of my app i have camera option. and i need to use that image to place in a position. Thats finished.

我有2个按钮:

1.Capture图像(完成√)

1.Capture Image (Done √)

2。选择文件从画廊

拍摄的图像通过点击捕捉按钮和地点,在需要的位置拍摄的图像。它的完成

Capture image By click Capture button and place that captured image in the required position. its done

现在的我想从库获取的图像通过点击另一个按钮库按钮功能

推荐答案

看看的的 PhoneGap的相机文件

如果Camera.sourceType = Camera.PictureSourceType.PHOTOLIBRARY或Camera.PictureSourceType.SAVEDPHOTOALBUM,则显示照片选择对话框,从中从相册中的照片可以选择。

If Camera.sourceType = Camera.PictureSourceType.PHOTOLIBRARY or Camera.PictureSourceType.SAVEDPHOTOALBUM, then a photo chooser dialog is shown, from which a photo from the album can be selected.

有关更多信息,请查看这个线程

For more information check out this thread.

*添加onclick事件监听器,你的按钮,你可以调用PhoneGap的功能;)

*Add a onclick event listener to your button where you can call the phonegap function ;)

这篇关于PhoneGap的+ JQuery_Mobile:如何通过点击按钮获取从照片/图片库图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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