Android CWAC-Camera rotation issues after upgrading to 0.6.3 - android

I am using the CWAC-Camera library within my Android application. Recently it was upgraded to v0.6.3, but since then I have noticed that rotation of images doesn't seem to work as expected.
I am starting a CameraFragment within an Activity that is locked to landscape orientation, and have observed the rotation is not correct for an output image with or without setting CameraFragment.lockToLandscape(true). I have managed to reproduce this in the demo application when the "Lock to Landscape" is checked (steps and a screenshot provided below). I have been testing on a Nexus 4 and Nexus 5 both running Android 4.4.2.
Has anyone else experienced this issue since upgrading to v0.6? Previously we were using 0.5.4 which didn't seem to have this issue, but looking at the release log I see there has been a lot of changes to EXIF data/rotation etc.
Steps to reproduce in demo app:
Open application, hold phone portrait or landscape
Select "Lock to Landscape" and "Single shot mode" from menu
Turn phone landscape (if started off portrait in step 1)
Capture image, appears rotated as per screenshot.
Cheers

For the record, this bug was fixed in v0.6.4 of the library.

Related

Android Studio not saving Device for Preview layout on exit

Hey all I've been looking far and wide trying to figure out how to save my preview setting's in Android Studio version:
Electric Eel 2022.1.1 Canary 3
Build #AI-213.7172.25.2211.8624637, built on May 20, 2022
Every time I change the Device For Preview to what I am always using (Lenovo Tablet API 29 in the example here):
And also change the orientation to Landscape:
Which should always stay looking like this for not just this layout but all others I have as well:
Then close Android Studio and open it again its right back to what it seems to always default to even though I changed it....
Here is a demo of me opening the Android Studies once to set the settings I am wanting it to save, saving it then exiting. I then start Android Studio again to show that it does not have my saved Device for Preview nor the orientation.
My device is setup correctly to mirror what I have chosen in the Device for Preview:
So, what am I doing wrong?
I think that is just a preview option and it doesn't save your app's orientation. But try this code and I hope it will help you.
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
You need to add this code in each relevant java activity of its layout.

A-Frame AR.js on android portrait mode not showing in place

I am developing a webAR using AR-js and A-frame, works perfectly with iPhone in landscape and portrait mode BUT in android only in landscape, when in portrait all augmented reality is not shown on the trigger image (Image Target ), appears shifted sideways and quite unsteadily. Is there any way to fix this?
I'm using a template based on the example at https://medium.com/swlh/ar-js-the-simplest-way-to-get-cross-browser-augmented-reality-on-the-web-10cbc721debc:
I also got the same issue some days back. It is because in aframe-ar doesn't have provision to correct the orientation shift(90 deg rotate). It might be working on the iPhone because of the auto-rotate. Try in android with auto-rotate(It may work).
Use console.log(event.details.intersectedE1) to know the exact
position of the trigger event.
I think this might help you out.
Caution: iPhone safari doesn't allow console.log().

Cordova media capture plugin bugs (Nexus 6, Android 6)

I'm experience four separate bugs with the official cordova media capture plugin on a Nexus 6 phone running Android 6.
Some of these bugs did not occur on the Nexus 6p. So I know there may be some phone specific issues here. Any help would be greatly appreciated.
Bug 1
open app at portrait orientation
then rotate to landscape
press record, then stop
notice how video preview is rotated in wrong orientation
Bug 2
open app
change camera facing from rear to front
notice how you can't click record button now
Bug 3
open app at portrait orientation
press record, then stop
accept video, and notice video cannot be played in a video player
Bug 4
open android Photos app
notice how videos are not shown in gallery
restart phone and reopen Photos app to see them
Plugin
https://github.com/apache/cordova-plugin-media-capture
Demo to replicate bugs
https://github.com/kmturley/cordova-media-capture-example
Fixed by updating to Android 6.0.1

App not showing on portrait mode in Galaxy m pro

i have created an application which is only work on potrait mode, Samsung screening review give a issue application work on landspace mode on Mid-end Galaxy (LQVGA), They also give video for same to identify, i found they are right, My app show in landscape mode for that device, but i am not able to find the reason, Why this is happen, because except that device my app work fine on all device, i also find device name is Galaxy M pro , i am attaching file screen shot of issue, please suggest me any way to resolve this issue, i already added android:screenOrientation="portrait" that in all activity of manifest.xml file

Android : Camera issue with 2.3 onwards

I have developed camera application using SurfaceView. It captures image and saves to the sdcard. In 2.1 and 2.2 it works fine but in 2.3 onwards it gives problem.
The exact problem in 2.3 is when I open my camera I am able to see preview in portrait mode but when image is saved its in landscape mode.
I dont know why this is happening? The application works fine in 2.1 and 2.2. If I take picture in portrait mode it saves in portrait only.
waiting for replies.
Thanks in advance.
I've had a similar problem.
Looks like the SDK has some breaking changes.
Try using the setDisplayOrientation, it solved my problem, hopefully, it will help you.
Good luck.

Categories

Resources