PhoneGap的+ JQuery_Mobile:如何通过点击按钮获取从照片/图片库图片 [英] PhoneGap+JQuery_Mobile: How to Get images from the Photo/image Gallery by click on a button
问题描述
我已经实现了一个的Andriod的 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屋!