I am trying to use the PhoneGap function to take a picture from my Android phone and save it in the phone gallery. I had no problems running and running their full example, but the code never saves the image. We tested on the Iphone and did not experience any problems, so I wonder if I am not doing something wrong or is this another issue with Android.
Telephone conversation example
Listed below are the steps I took based on what I saw on the Internet.
Add to app / res / xml / config.xml<plugin name="Camera" value="org.apache.cordova.CameraLauncher" />
Add to manifest file <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Change the parameters in getPicture () to enable the saveToPhotoAlbum option navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50, destinationType: destinationType.DATA_URL, saveToPhotoAlbum: true });
I also tried changing the destination type to FILE_URI , but still no luck. The application can still display the captured image, so I know that it is so far, I just do not know why it does not save in the gallery.
source share