I got this error when I call `recordAsync(...)` with `quality: RNCamera.Constants.VideoQuality['480p']` on Samsung Galaxy Tab S 10.5.
```
Error: Error retrieving camcorder profile params
at createErrorFromErrorData (NativeModules.js:123)
at NativeModules.js:80
at MessageQueue.__invokeCallback (MessageQueue.js:400)
at MessageQueue.js:139
at MessageQueue.__guardSafe (MessageQueue.js:316)
at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:138)
```
It happens because there is no check if device actually supports given quality.
To make the `CamcorderProfile.get(quality)` call safe we need to check if there is appropriate CamcorderProfile by calling `CamcorderProfile.hasProfile(quality))`.
This PR fixes that issue.
* Add 'doNotSave' flag to android
Added check for 'doNotSave' flag to prevent saving picture to cache
* Update RNCameraManager to check for 'doNotSave'
Updated RNCameraManager to avoid saving to disk when 'doNotSave' set to true
* Update RNCamera to check for 'doNotSave'
Updated RNCameraManager to avoid saving to disk when 'doNotSave' provided and set to true
* Added notes for doNotSave
Added documentation for using doNotSave option
- Updated RNCamera.js to allow for path in recording options
- Updated RNCamera.m to check for new `path` key in options
- Updated RNCameraView.java to check for `path` property to use
- Updated RNCamera.md to reflect new option
* add scan support for landscape mode
* refactoring
* fix errors
* fix rotation
* add landscape orientation support
* fix exception
* freeze preview image
From PR https://github.com/lwansbrough/react-native-camera/pull/919
* fix bug on android when user take photo and press home button immediately - after that camera not works
Exposure time is returned from camera as a string like 1/11.
ExifInterface on expects exposure time to be formatted as a string but
the string should contain decimal formatted number instead of fraction
format.
Some of the exif data has been previously been lost. Now they are
included as the sub directory is looped and names of exif data are
formated to match with ExifInterface class requirements.