Android Phonegap Config Xml User-permission
I have started working on PhoneGap. I am using PhoneGap build to compile my app. I was trying to use the camera but I am stuck in config.xml After alot of searching everywhere I a
Solution 1:
Add this line to your config.xml
<featurename="http://api.phonegap.com/1.0/file" /><!-- WRITE_EXTERNAL_STORAGE; required for camera to write to camera roll -->
Solution 2:
You can check my repository here,
AndroidManifest
<?xml version='1.0' encoding='utf-8'?><manifestandroid:hardwareAccelerated="true"android:versionCode="1"android:versionName="0.0.1"android:windowSoftInputMode="adjustPan"package="com.revivalx.cordova.camera"xmlns:android="http://schemas.android.com/apk/res/android"><supports-screensandroid:anyDensity="true"android:largeScreens="true"android:normalScreens="true"android:resizeable="true"android:smallScreens="true"android:xlargeScreens="true" /><uses-permissionandroid:name="android.permission.INTERNET" /><applicationandroid:hardwareAccelerated="true"android:icon="@drawable/icon"android:label="@string/app_name"><activityandroid:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"android:label="@string/app_name"android:name="CameraCordova"android:theme="@android:style/Theme.Black.NoTitleBar"><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter></activity></application><uses-sdkandroid:minSdkVersion="10"android:targetSdkVersion="19" /><uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE" /></manifest>
config.xml
<?xml version='1.0' encoding='utf-8'?><widgetid="com.revivalx.cordova.camera"version="0.0.1"xmlns="http://www.w3.org/ns/widgets"xmlns:cdv="http://cordova.apache.org/ns/1.0"><preferencename="loglevel"value="DEBUG" /><featurename="App"><paramname="android-package"value="org.apache.cordova.App" /></feature><name>CameraCordova</name><description>
This source code provides example for taking pictures and for choosing images from the system's image library.
</description><authoremail="nurdinnorazanservices@gmail.com"href="http://revivalx.com">
Apache Cordova Team
</author><contentsrc="index.html" /><accessorigin="*" /><featurename="Camera"><paramname="android-package"value="org.apache.cordova.camera.CameraLauncher" /></feature></widget>
Tutorial: http://blog.revivalx.com/2014/05/03/tutorial-camera-cordova-plugin-for-ios-and-android/
Post a Comment for "Android Phonegap Config Xml User-permission"