CodeForge QQ客服 CodeForge 400电话 客服电话 4006316121
bc... [google]
首页 » 源代码 » 对于PhoneGap前景摄像机插件(科尔多瓦)

对于PhoneGap前景摄像机插件(科尔多瓦)

liange
发布于2016-05-19 22:50:15
源码作者
浏览次数:
下载次数:0
下载所需积分:1 
源码分类 Tags:
源码分类 所属分类:
AllAll

分享有礼! 》

  • 请点击右侧的分享按钮,把本代码分享到各社交媒体。
  • 通过您的分享链接访问Codeforge,每来2个新的IP,您将获得0.1 积分的奖励。
  • 通过您的分享链接,每成功注册一个用户,该用户在Codeforge上所获得的每1个积分,您都将获得0.2 积分的分成奖励。

代码介绍

Foreground Camera Plugin for Phonegap (Cordova)

The default Phonegap (Cordova) Camera Plugin calls the native camera and this makes Android Garbage Collector to kill background applications. This plugin avoid your application to go background and be killed by Garbage Collector with other applications. We used the Phonegap source code and modified it to avoid this problem. This plugin works only with File URI.

Contributions

We need help to upgrade this plugin as Cordova evolves. Developers are welcome. Contact if you want to help us to maintain and grow up this plugin! :)

Donations

[![](https://www.paypalobjects.com/enUS/i/btn/btndonateCCLG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=s-xclick&hostedbuttonid=WK4N5FLJLGXV6)

Releases

|Phonegap (Cordova)|Foreground Camera Plugin| |:---------------------|:---------------------------| |2.4.0 |1.4 | |2.1.0 |1.3 | |1.8.0 |1.1 |

Download

Please see: http://code.google.com/p/foreground-camera-plugin/downloads/list

Adding the plugin to your project

1) To install the plugin, move the file camera.js to your project's www folder and include a reference to it in your html files.
2) Put the Java files in your src/ folder.
3) Change the default Camera Plugin into res/xml/config.xml file to: <plugin name="Camera" value="<path to your ForegroundCameraLauncher.java>"/> 4) Put the strings.xml in your res/values folder.
5) Put the foregroundcameraplugin.xml in your res/layout folder.
6) Put cordova-X.X.X.jar file in your /lib folder.
7) In your AndroidManifest.xml, put these permissions: ``` <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.WRITEEXTERNALSTORAGE" /> <uses-permission android:name="android.permission.ACCESSNETWORKSTATE" />

<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />

8) Declare the Camera Activity: <activity android:name=".CameraActivity" android:label="ForegroundCameraPlugin" android:screenOrientation="landscape"> ``` ## Using the plugin ##

See the sample project.

License

Licensed under Apache License 2.0:

/** * Copyright 2013 Bruno Carreira - Lucas Farias - Rafael Luna - Vinícius Fonseca * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */

Sponsored links

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
camera.js2.71 kB26-02-13 12:24
CameraActivity.java4.38 kB26-02-13 12:24
ForegroundCameraLauncher.java12.47 kB26-02-13 12:24
foregroundcameraplugin.xml1.72 kB26-02-13 12:24
ForegroundCameraPreview.java1.95 kB26-02-13 12:24
index.html2.56 kB26-02-13 12:24
LICENSE11.29 kB28-09-12 13:02
NOTICE598.00 B03-10-12 16:48
README.txt2.28 kB26-02-13 12:24
.classpath425.00 B26-02-13 12:24
.project858.00 B28-09-12 13:47
AndroidManifest.xml2.33 kB26-02-13 12:24
index.html2.56 kB26-02-13 12:24
camera.js2.71 kB26-02-13 12:24
cordova-2.4.0.js205.07 kB26-02-13 12:24
cordova-2.4.0.jar233.67 kB26-02-13 12:24
LICENSE11.29 kB28-09-12 13:02
NOTICE494.00 B26-02-13 12:24
project.properties360.00 B28-09-12 13:45
ic_launcher.png4.05 kB24-09-12 17:59
ic_launcher.png1.68 kB24-09-12 17:59
ic_launcher.png2.51 kB24-09-12 17:59
foregroundcameraplugin.xml1.72 kB26-02-13 12:24
strings.xml947.00 B26-02-13 12:24
config.xml3.59 kB26-02-13 12:24
App.java1,010.00 B26-02-13 12:24
CameraActivity.java4.38 kB26-02-13 12:24
ForegroundCameraLauncher.java12.47 kB26-02-13 12:24
ForegroundCameraPreview.java1.95 kB26-02-13 12:24
strings.xml947.00 B26-02-13 12:24
<js>0.00 B26-02-13 12:40
<foregroundcameraplugin>0.00 B26-02-13 12:40
<www>0.00 B26-02-13 12:40
<drawable-hdpi>0.00 B26-02-13 12:40
<drawable-ldpi>0.00 B26-02-13 12:40
<drawable-mdpi>0.00 B26-02-13 12:40
<drawable-xhdpi>0.00 B26-02-13 12:40
<layout>0.00 B26-02-13 12:40
<values>0.00 B26-02-13 12:40
<xml>0.00 B26-02-13 12:40
<com>0.00 B26-02-13 12:40
<assets>0.00 B26-02-13 12:40
<libs>0.00 B26-02-13 12:40
<res>0.00 B26-02-13 12:40
<src>0.00 B26-02-13 12:40
<ForegroundCameraPlugin>0.00 B26-02-13 12:40
<Sample>0.00 B26-02-13 12:40
<foreground-camera-plugin-1.4>0.00 B26-02-13 12:40
程序员商城

资源评论

(提交有效评论获得积分)
评论内容不能少于15个字,不要超出160个字。
  • 1
  • 第1页
  • 共1页

对于PhoneGap前景摄像机插件(科尔多瓦) (304.13 kB)

需要 1 积分
您持有 积分

CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了 了解更多

您的积分不足,优惠套餐快速获取 30 积分

订单支付完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。

更多付款方式:网银PayPal

上传代码,免费获取CodeForge积分

您本次下载所消耗的积分将转交上传作者。

同一源码,30天内重复下载,只扣除一次积分。

登录 CodeForge

还没有CodeForge账号? 立即注册
关注微博
联系客服

Switch to the English version?

Yes
CodeForge 英文版
No
CodeForge 中文版

完善个人资料,获价值¥30元积分奖励!

^_^"呃 ...

Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧
好的