I have a Cordova app which uses cordova-plugin-camera to take pictures. I need to capture the phone orientation at the instant the picture is taken. I know how to use DeviceOrientation to get the phone orientation, but the problem is that if I capture it before invoking getPicture, the user may move the phone prior to pressing the shutter button, and since I am using the allowEdit option to let the user crop the picture before returning to the app, if I capture the orientation afterwards the user will probably have moved the phone in the course of doing the editing. Is there any way I can capture the orientation at the instant the shutter button is pressed?
Get phone orientation at moment picture is taken with cordova-plugin-camera
162 Views Asked by AudioBubble At
1
There are 1 best solutions below
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in CORDOVA
- how to get rid of the cordova screen when you open the app
- How to build a codesandbox project to android apk?
- Cordova Android run failed
- Cordova Build issue since version 12.0.0
- cordova-background-geolocation-plugin don't giving any response in cordova android app
- provider duplicate while compiling a Cordova application for the Android platform
- Detect clickable areas within <img> tag in Ionic project
- Whitelisting Ionic app in Salesforce Org for CORS/CSP
- gradle keeps failing. Cordova run. Vscode
- Cordova plugin splashscreen issue while Azure Devops with ant build using android-cordova application
- Ionic 3 issue while generating AAB file
- Xcode Undefined symbols, Linker command failed with exit code 1 (use -v to see invocation)
- Xcode 15.3 build failed
- Samsung screen zoom ruining my cordova built android app
- command: ionic server Killed 9
Related Questions in CORDOVA-PLUGINS
- cordova-background-geolocation-plugin don't giving any response in cordova android app
- Failed imports in ionic plugin
- android.content.ActivityNotFoundException: No Activity found to handle null
- httpd plugin in ionic capacitorJS
- Connecting Custom Cordova Plugin in Native vue app
- processReleaseMainManifest FAILED when build in cordova 12.0.0
- After installing cordova-plugin-screen-orientation npx cap sync does not work anymore
- download PDF file from external website with inappbrowser ionic cordova
- From @awesome-cordova-plugins/in-app-browser not able to download PDF in Ionic Cordova Applications
- Using NFC scanning functionality in React apps with Capacitor
- How to disable log output in Cordova apps
- cordova my height body got shrink after keyboard pop up
- Unable to do payment in angular cordova app from android device
- SAPUI5 Bundled app w/ Cordova SSO SAP Backend
- TypeError: Spread syntac requires ...iterable[Symbol.iterator] to be a function
Related Questions in DEVICE-ORIENTATION
- deviceorientation alpha is wrong every time I turn off my screen
- Ipad Orientation landscape mode is not working
- Stellarium-web canvas navigation through device sensors
- iOS Camera didFinishProcessingPhoto always giving random wrong orientations
- How can I listen to Screen Rotations in React Native, including e.g. a rotation from landscape-left to landscape-right?
- Google Maps API Integration in React: Achieving Stable User Location and Device Orientation
- toolbar items have no dimensions (width, height, left, right, ...) after a configuration change
- WPF: How to read video orientation (i.e. side data: displaymatrix) in mp4 with TagLibSharp?
- How to fetch device auto rotation is on or off in flutter using native code
- Moving Three.js camera using device orientation - Strange behavior when the device is placed vertically
- Set camera to look at a specific place when using device orientation controls in Panolens.js
- Turning Safari's device orientation into absolute device orientation
- React-native flatlist item layout should adapt device orientation change
- Ionic and Cordova ios deviceorientation
- SwiftUI animated background view adjust width according to size changes (orientation)
Related Questions in GETPICTURE
- Why Would a .NET Bug Occur on All Computers Except the Programming Computer?
- Cordova: Access image in Android's cache or files folder from an html file
- I want to change the text of "your usage message" in alert of getPicture - ionic ios
- Cordova Camera getPicture from gallery not retrieving file extension
- Get phone orientation at moment picture is taken with cordova-plugin-camera
- How I can get specific picture on a website using curl xpath in php
- Cordova app crashes when the file access permission is denied
- Ionic 2 - Base 64 image not displayed when taking picture
- Cordova get image name
- Ionic 1, firebase storage, cordova.getPictures, not save images?
- When i run this command " cascPath = sys.argv[1] " i get error IndexError: list index out of range
- Advanced Installer: Show preview Pictures for every Feature
- "Don't make functions within a loop." lint error. What is the correct way to write it?
- Get current display Picture Box image while its image and background image are null
- Camera Phonegap
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can't as if you use
allowEdit: trueoption, as soon as the user accepts the picture, he is taken into the edit screen and all of that is handled by the plugin.What you can do is to use the
correctOrientation: trueoption, that should take care of the orientation for you.In case that doesn't work as you like, then you'll have to fork the plugin and add some code to handle the orientation change as you want and use your fork instead.