在PhoneGap的自动照片拍摄 [英] Automatic Picture Capture on PhoneGap

查看:136
本文介绍了在PhoneGap的自动照片拍摄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立与PhoneGap的和Android应用程序,如果有人知道如何有一个应用程序会自动拍摄一张照片很纳闷,说5秒钟,用户打开应用程序后,无需用户实际pressing什么。任何帮助将apprciated!

I am trying to build an app with PhoneGap and Android and was wondering if anyone knows how to have an app automatically capture a picture, say 5 seconds after the user opens the app, without the user actually pressing anything. Any help would be apprciated!

推荐答案

当您在你做的setTimeout的deviceready事件处理函数调用navigator.camera.getPicture(),但没有办法自动的点击按钮。用户需要做的。除此之外,你需要编写一个插件来自动进行拍摄,如果这是你真正需要的。

When you can do a setTimeout in you on "deviceready" event handler to call navigator.camera.getPicture() but there is no way to automate the clicking of the button. The user will need to do that. Other than that you'd need to write a plugin to automatically take the picture if that is what you really need.

这篇关于在PhoneGap的自动照片拍摄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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