Daniel Andrews
642ff19a52
Add latlng and timestamp to image picker response
2016-05-30 15:49:09 -05:00
Yoann Fuks
e4c25ef85d
Merge pull request #203 from Keepsite/android-4.1-camera-support
...
Adding support to take photo on Android API 16. PackageManager.FEATUR…
2016-05-11 16:56:59 +02:00
Andrew Shield
9982e35547
Adding support to take photo on Android API 16. PackageManager.FEATURE_CAMERA_ANY does not exist on API 16.
2016-05-11 15:05:06 +01:00
yfuks
c76911a905
[Android] add path to video info
2016-05-11 15:40:28 +02:00
yfuks
f2761a41ec
[Android] return an error if camera isn't available in launchCamera method
2016-04-18 21:11:33 +02:00
yfuks
abe0c7ed38
[Android] Check if the camera is available in code rather than in manifest
2016-04-13 03:18:46 +02:00
yfuks
49803e15ff
[Android] add some infos to response
2016-04-09 22:52:47 +02:00
yfuks
5e9227acf4
[Android] use the uncropped file if the crop failed
2016-04-08 06:28:56 +02:00
Yoann Fuks
fb82285549
Merge pull request #143 from taskrabbit/reorient-image
...
[Android] reorient image on image resize
2016-04-07 00:06:18 +02:00
yfuks
f134b9158c
[Android] Robustness code
2016-04-06 23:22:08 +02:00
Jeremy Eaton
8caed679bd
reorient image if image disoriented
2016-03-09 14:38:48 -08:00
Jimmy Mayoukou
2ee3f5bd35
Add custom buttons feature on Android
...
(cherry picked from commit cb556e4)
2016-03-08 18:33:29 +01:00
yfuks
f777abaa6c
[Android] use current Activity instead of mainActivity
2016-02-29 00:39:31 +01:00
yfuks
bfb8cb4054
[Android] Add video picking
2016-02-28 16:41:05 +01:00
yfuks
61d7d434e7
[Android] refactor cropping + lint
...
- crop directly from library/camera intent instead of using "com.android.camera.action.CROP" since it's not officially part of the android API
2016-02-27 23:44:02 +01:00
yfuks
a76c30367e
[Android] fix options override
2016-02-27 19:59:50 +01:00
yfuks
5355d7ce48
[Android] read options in a function since the code is the same for library/camera
2016-02-27 15:56:56 +01:00
yfuks
fbac95b149
[Android] installation change
...
- upgrade react-native compilation to 0.20.+
- set version name from package.json
- manage onActivityResult in the module (not in the mainActivity)
2016-02-27 15:19:00 +01:00
yfuks
d7527e455e
[Android] fix crop image cannot write Exception
...
doc: http://stackoverflow.com/a/24418124
fix #117
2016-02-24 23:32:21 +01:00
Marc Shilling
04b09ea995
changed native module name from UIImagePickerManager to ImagePickerManager
2016-02-23 17:47:04 -05:00
davidjeffries
af77ffe58e
Added null checks
...
Checking nulls for options: takePhotoButtonTitle and
chooseFromLibraryButtonTitle
2016-02-15 22:47:08 -08:00
Yoann Fuks
ff09909727
[Android] fix java.lang.OutOfMemoryError Exception
2016-02-04 12:30:53 +01:00
宋有伟
fe9529b0b5
add options of image crop: aspectX & aspectY
2016-01-29 14:45:20 +08:00
Yoann Fuks
e367f54728
[Android] add angle option
2016-01-26 13:14:14 +01:00
Yoann Fuks
f258cfa1eb
[Android] allow editing
2016-01-26 12:23:34 +01:00
Yoann Fuks
ad84eca177
[Android] add comment and storage options to camera Launch
2016-01-26 11:15:19 +01:00
Pedro Belo
caa48dedf4
keep previous behavior, check storageOptions before going for tmp
2016-01-19 13:45:12 -08:00
Pedro Belo
af740ca4d0
use a temporary file for the resized image
2016-01-19 13:35:05 -08:00
Pedro Belo
f033e0eebd
fix file reference when resizing images
...
make sure the path still points to the right file
2016-01-19 13:35:05 -08:00
Yoann Fuks
64248028e8
Merge pull request #89 from pedro/handle-null-path-v2
...
[Android] Handle case where we can't extract the image path and url path in Android (v2)
2016-01-18 23:51:39 +01:00
Pedro Belo
f03659b2af
call it just "path"
2016-01-18 14:24:22 -08:00
Pedro Belo
c24002ab85
better error description here
2016-01-18 14:22:56 -08:00
Pedro Belo
d49b502094
explicitly check if the library intent can execute
2016-01-18 14:22:38 -08:00
Pedro Belo
9357fc6434
oops, cannot trigger the callback here
...
apparently even though the activity doesn't exist, the activity
result might still run on another thread
2016-01-18 14:21:15 -08:00
Pedro Belo
8cef8ea26d
attempt to create a file off url paths too
2016-01-18 13:50:59 -08:00
Pedro Belo
3f4da32204
send the uri here regardless
...
this way consumers can still try to render if they want
2016-01-18 13:47:11 -08:00
Pedro Belo
579d95c4a2
handle ActivityNotFoundException
...
when starting intents to get a photo from the camera or photo
album
2016-01-18 13:36:30 -08:00
Pedro Belo
fd1a510ed7
no need for special isUrl handler
...
now that we're copying whatever is on the url to a file it should
always work (or fail in the exception handler above)
2016-01-15 19:08:01 -08:00
Pedro Belo
ef490b6ffb
handle different types of image urls
...
avoid issue getting a path for some image urls returned by the
intent on Android 4.4+ - just create a temp file for these
2016-01-15 19:07:04 -08:00
Pedro Belo
19c45e9806
always render the urlPath
2016-01-15 19:06:50 -08:00
Yoann Fuks
5352dd741e
[Android] Library open a gallery app
2016-01-09 23:12:24 +01:00
Yoann Fuks
01406f2753
[Android] multiples fix and enhancements
...
###enhancements
- match iOS breaking point (didCancel, response) into (response)
- put android uri in response.uri instead of path (fix #67 )
###fix
- fix java.lang.OutOfMemoryError that could appears when returning base64 data multiple times
- fix crash when app select a no-gallery image in the gallery (could appears in case of a facebook picture for example)
- fix crash when there was no pictures directory on the device and module was trying to create an temp file for camera capture in it
2016-01-09 01:17:47 +01:00
Yoann Fuks
a22e7f5901
fix @yfuks
2016-01-08 09:39:22 +01:00
Yoann Fuks
3bebab334a
Fix IOException when no DIRECTORY_PICTURES
...
#72
2016-01-07 14:15:10 +01:00
Marc Shilling
5438f38226
refactored repo to have ios and android folders at the root
2015-12-30 10:18:59 -05:00