Camera question - HD2 Android Q&A, Help & Troubleshooting and Genera

Hello,
I am creating an application for android for my HD2.
I did everything according to the camera api tutorial but when the preview comes up on te screen the image was flipped horizontally.
I have fixed it by calling the method "setDisplayOrientation" and turning it again 90 degrees.
camera.setDisplayOrientation(90);
camera.startPreview();
But I still see if i rotate my camera slowly to landscape that the image gets skewed a bit . I don't want the image getting skewed when changing from potrait to landscape. The build in android camera app doesn't do this.
Am I forgetting something? Does the SurfaceView has incorrect width/height ?
It must be possible as the standard camera app doesn't skew it when I turn the camera horizontally.
Thx in advance.

Related

How to zoom in after changing screen orientation in Opera??

Hi,
Is this a bug?
I can not zoom in after rotating the screen from portrait to landscape orientation and vice versa, not even using the zoom bar at the bottom of the screen. I have to reload the site in order to be able to zoom in again, which is a bit annoying.
I have the same problem, anyone more info?
Grt

[Q] Nexus 7 sensor coordinate system orientation? 90 degree offset like tablets?

Anyone who's had an Android tablet knows that a lot of poorly coded apps get flummoxed by the default 90 degree rotated, landscape orientation of the device.
Thus my question, is the sensor in the Nexus 7 rotated as well? Or is the default orientation set to portrait, the same as a phone?
Google "sensors-overview sensors-coords android" to find the relevant developer page. The specific orientation details are near the bottom: Sensor Coordinate System
"One Screen Turn Deserves Another" is an excellent article that explains the problem quite well.
If anyone who has a preview device could check to see what orientation the N7 uses, that'd be great. I'm hoping for portrait.
zinfinion said:
Anyone who's had an Android tablet knows that a lot of poorly coded apps get flummoxed by the default 90 degree rotated, landscape orientation of the device.
Thus my question, is the sensor in the Nexus 7 rotated as well? Or is the default orientation set to portrait, the same as a phone?
Google "sensors-overview sensors-coords android" to find the relevant developer page. The specific orientation details are near the bottom: Sensor Coordinate System
"One Screen Turn Deserves Another" is an excellent article that explains the problem quite well.
If anyone who has a preview device could check to see what orientation the N7 uses, that'd be great. I'm hoping for portrait.
Click to expand...
Click to collapse
I'd assume it would be rotated since they're very intent on educating users on using a 7" tablet in portrait like a book.
Yea I'm gonna say that it's probably not in landscape since the whole UI is portrait based. Seems a bit counter productive to have to rotate the device every time you launch an app.
Sent from my Samsung Galaxy S III using xda-developers app
DarkRyoushii said:
Yea I'm gonna say that it's probably not in landscape since the whole UI is portrait based. Seems a bit counter productive to have to rotate the device every time you launch an app.
Click to expand...
Click to collapse
I'm fairly confident the sensors will be in portrait orientation by default, but confirmation would be nice.
The reason I ask is because my current Galaxy Tab 2 7.0 has the 90 degree offset sensor issue. 99% of the time it's fine. It boots up in portrait, apps launch in portrait (unless landscape only apps, which launch in landscape with no issues). Certain apps that are poorly coded and expect all devices to be portrait by default tend to do all sorts of odd things though. I've only run across a couple in the Play store, and one of those has been fixed.
The real problem lies with custom roms, as all of the ones I have tried default to the landscape sensor orientation (boot orientation when laid flat is landscape), rather than compensate for it (the stock Samsung rom is portrait by default when laid flat). This has led to all sorts of aggravating (and unintentionally hilarious) issues with the custom roms.
So hopefully Google thought this through and the N7 sensor orientation is portrait by default and basically acts like a large phone minus the phone bits.

Gallery photo auto orientation incorrect...

On the Nexus 7 the gallery auto rotation of photo's is incorrect
i.e. landscape goes portrait and vice versa
They display fine on my Samsung Galaxy SII (source) and in the Google+ Photos from either any PC or the Galaxy SII
Is this a calibration issue? Or is there some other setting?
Cheers
David
Getting similar results
I am having this issue also. A portrait photo with the nexus held in portrait position auto rotates to fit across the screen in landscape view. This happens when auto rotate feature is both enabled and disabled. Any suggestions?
Exactly the same problem here. Photos taken on a Nexus S running Jelly Bean and uploaded via instant upload display in incorrect orientation (always over rotated by 90 degrees) in the Gallery on Nexus 7. They are in the correct orientation when viewed any other way including on the web via Picasa and on the Nexus 7 via 3rd party Picasa viewing apps. I really would prefer to use the stock Gallery app but this is so frustrating.....
Any solutions to this? Exact same issue and it is a real bother
very same problem here
If I take a landscape photo on my SGS II and have it "instant-uploaded", it will appear okay on my Nexus 7. If I take a portrait photo on the SGS2, the photo will appear in the right orientation for app. 0,1 sec, then gets rotated (falsely.) Then, if I email that falsely rotated photo to myself, the photo will appear in the email with correct orientation.
Btw in the Google Plus app both photos have the correct orientation, so it seems to be a Jelly Bean bug, not a Samsung bug.
Solution, anyone?
Same, but different....
I've got pretty much the same problem, but rather than actually rotating the picture so that it is in the wrong orientation, it keeps the correct orientation for portrait photos, but compresses them vertically into the same space that would be used for a landscape photo, thereby distorting the aspect ratio (hope that makes sense!). Same occurrences though, only in gallery, not G+, and only on this device and for portrait oriented photos uploaded via G+ instant upload.
It is driving me insane!
Same thing here except it doesn't do it to all the pics in my instant upload. Only some of them.
It's probably some Android bug as I have the same problem on my SGS2 with CM10 (JB). All photos look ok in the Gallery (although when I exit an opened portrait photo it turns 90 degree to the right in the animation. Very annoying as all portrait photos I post on G+ are wrongly oriented.
Galaxy S3 Same problem
Same problem with my Galaxy S3, i thought i was the only one with this problem, so its a relief to know I'm not the only one, its been months since this thread was created, and its still an ongoing problem, it would be nice to know if a fix is on the works, by the looks of it, it might be a bug with android not samsung, either way has anyone found a work around this?? or heard anything new on the issue

[Q] Picture Orientation

It seem that the G2 takes all pictures in landscape mode and uses exif data to tell the viewer to rotate the image if it was taken in portrait orientation. This is totally annoying especially for mms and for viewing thumbnails in outside viewers like windows.
Any solutions on how to actually have the stock camera take a picture in portrait mode and actually store the pixels as as a portrait?
Thanks.
smacklayer said:
It seem that the G2 takes all pictures in landscape mode and uses exif data to tell the viewer to rotate the image if it was taken in portrait orientation. This is totally annoying especially for mms and for viewing thumbnails in outside viewers like windows.
Any solutions on how to actually have the stock camera take a picture in portrait mode and actually store the pixels as as a portrait?
Thanks.
Click to expand...
Click to collapse
Hi, did you ever find a solution for this? It's so annoying, but there is almost nothing to be found about it on the Internet..
Hope you can help.

Depth effect in stock Camera

Hello, in my stock camera if i take portrait mode picture, the photo comes normal only with no blur, there's no depth effect on any person or object, tried forced stopping still..
It's not a big problem for me as I am using GCam only for portrait photos ? but the stock camera need to run properly
Nirbhay17 said:
Hello, in my stock camera if i take portrait mode picture, the photo comes normal only with no blur, there's no depth effect on any person or object, tried forced stopping still..
It's not a big problem for me as I am using GCam only for portrait photos but the stock camera need to run properly
Click to expand...
Click to collapse
when opening camera, on the top you will notice 5 icon, extreme right will be setting, next to that you will find the icon to enable or disable portrait mode. try and let me know
ithunhunt said:
when opening camera, on the top you will notice 5 icon, extreme right will be setting, next to that you will find the icon to enable or disable portrait mode. try and let me know
Click to expand...
Click to collapse
Well it must have been some malfunction but it started working when i cleared data, so its fine now.. Thank you for responding

Categories

Resources