macdonst
a9c34e65fb
Fix for issue #141 : EXIF data stripped from captured photos in android
...
In order to fix this issue I needed to read the EXIF data. Save it to a temporary object then after the bitmap is compressed I open the file and write the saved EXIF data.
Supports the following EXIF fields if they are set in your image:
APERTURE
DATETIME
EXPOSURE_TIME
FLASH
FOCAL_LENGTH
GPS_ALTITUDE
GPS_ALTITUDE_REF
GPS_DATESTAMP
GPS_LATITUDE
GPS_LATITUDE_REF
GPS_LONGITUDE
GPS_LONGITUDE_REF
GPS_PROCESSING_METHOD
GPS_TIMESTAMP
ISO
MAKE
MODEL
ORIENTATION
WHITE_BALANCE
2011-08-23 01:47:10 +08:00
macdonst
2bf765897b
Normalize Android Camera.takePicture with iOS and BB versions.
...
Both iOS and BlackBerry support the PNG image format so I added support for Android.
Also, iOS and BB use targetWidth/targetHeight to specify the resolution of the image. I've swiched from using maxResolution to targetWidth/targetHeight in this change list.
2011-07-26 12:18:04 +08:00
Joe Bowser
648e56cb67
Merging maxResolution
2011-07-21 13:15:52 -07:00
macdonst
eb0e0d9d11
Issue #156 : Camera.DestinationType.FILE_URI on Android not conforming to API Spec
...
Instead of capturing the orginal image to /sdcard/Pic.jpg or /sdcard/Capture.jpg we detect if the SD card is mounted. If mounted the file is placed in the apps temp directory at:
/sdcard/Android/data/{package name}/cache/
If the SD card is not mounted we default to internal storage at:
/data/data/{package name}/cache/
2011-07-16 05:03:48 +08:00
Fil Maj
4280fdf252
Fix for ticket #58 : Certain 1.5/1.6 devices would throw a FileNotFoundException when taking pictures. Patch submitted by Agustin of AVANTIC (thanks!).
2011-05-26 12:42:44 -07:00
Ron Reiter
307f9d1871
Add maxResolution flag
2011-04-04 02:57:10 +03:00
Bryce Curtis
1eae6786c4
Better memory management when taking pictures.
2011-01-06 11:12:14 -06:00
Bryce Curtis
1d9e522bd9
Fix quality issue with base64 encoded images. Quality parameter wasn't being set.
2010-11-16 18:14:24 -06:00
Bryce Curtis
b66535a17d
Introduce PhonegapActivity class to separate plugin development from base Phonegap.
2010-11-06 03:10:28 +08:00
Bryce Curtis
831670e4ae
Modify camera to use NO_RESULT, thus eliminating extra JS callback methods.
2010-10-27 21:33:50 +08:00
Bryce Curtis
de23753204
Update license and copyright notices in each source file. PhoneGap is licensed under modified BSD and MIT (2008).
2010-10-18 15:31:16 -05:00
Bryce Curtis
9adb85a64b
Add callbackId to Plugin.execute() so result can be sent back when overlapping calls to same plugin occur.
2010-10-06 12:56:34 -05:00
Bryce Curtis
68146329b9
Add IPlugin interface and change Plugin to be abstract class. Plugins can either implement IPlugin or extend Plugin.
2010-10-06 12:56:34 -05:00
Bryce Curtis
92d2b5812c
Change camera to be more consistent with iPhone and BB widgets. Add support to choose image from library instead of only camera.
2010-09-16 11:31:42 -05:00
Bryce Curtis
1c0de5ad8d
Change hasReturnValue to isSynch to be more accurate about purpose of method.
2010-09-13 11:01:44 -05:00
Bryce Curtis
53fca124ab
Modify camera capture to use async plugin. Use option instead of method to specify capture type (base64 or file).
2010-09-10 14:45:32 -05:00
Bryce Curtis
a13b8fc124
Implement ReturnValue() for each plugin.
2010-09-10 11:34:06 -05:00
Bryce Curtis
4f360c2680
Change commands to plugins.
2010-09-07 13:59:54 -05:00
Bryce Curtis
9e931cc3f6
Change to use Commands and CommandManager.
2010-09-07 10:39:55 -05:00
Bryce Curtis
5d83a44ec3
Set default camera image to base64. Add comments.
2010-09-03 16:00:21 -05:00
Bryce Curtis
f77e51290b
Add automatic handling of onActivityResult, so modules that start activities with result callback can do so without modifying DroidGap.java.
2010-09-03 14:01:24 -05:00
Bryce Curtis
1febba48ff
Moved camera code from DroidGap into CameraLauncher. Added comments and error messages.
2010-09-02 11:27:48 -05:00
Bryce Curtis
b4d3a10773
Change loadUrl(javascript...) to use new callback mechanism.
2010-08-19 14:37:49 -05:00
Joe Bowser
b65a0b1bd6
Fixing quality bug in Camera
2010-06-04 15:21:57 -07:00
Joe Bowser
8f18dae2c1
Changed to use the Camera Intents to our own peril.
2010-06-04 14:54:16 -07:00
Joe Bowser
d012235bc2
Initial Move of the Javascript OUT of the shared directory: Android
2009-11-17 10:38:49 -08:00