Re: [android-developers] Re: Android camera orientation problem

2012-10-24 Thread Jim Graham
On Tue, Oct 23, 2012 at 09:50:31PM -0700, Adam Ratana wrote: I've just spent quite a bit of my spare time working on implementing a portrait mode activity option for the camera preview - to answer Spooky's question, the main reason one might do this is because it goes well with the UI/UX

[android-developers] Re: Android camera orientation problem

2012-10-23 Thread Flame-Tree
Have you tried you application on any other phone. As you are accessing setparameter/getparameter; which is more specific with your hardware support. Have you tried any android applicationCamera from Google play which behaves the way you would like. Confirm whether Phone provides the

[android-developers] Re: Android camera orientation problem

2012-10-23 Thread Haris
Hi thanks for your reply I didn't check that yet. I will try that.. On Tuesday, 23 October 2012 17:38:06 UTC+5:30, Flame-Tree wrote: Have you tried you application on any other phone. As you are accessing setparameter/getparameter; which is more specific with your hardware support.

Re: [android-developers] Re: Android camera orientation problem

2012-10-23 Thread Jim Graham
On Mon, Oct 22, 2012 at 09:53:12PM -0700, Haris wrote: I don't know why it's not worked with me. If I set orientation as portrait in manifest file I am getting 90 degree rotated image in my preview. But in the case of landscape orientation I am getting normal image in my preview while my phone

Re: [android-developers] Re: Android camera orientation problem

2012-10-23 Thread Adam Ratana
Haris, take a look a this: http://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int) This is for API 8 (2.2+) devices. I've found that there's no reliable way to guarantee this to work on 2.1 devices by setting the camera parameters the way you are now,

Re: [android-developers] Re: Android camera orientation problem

2012-10-23 Thread Haris
Hi thanks all for your replays.. Yesterday I have checked some application from google play like pudding camera etc. and it's working perfectly. Even if I access the default camera from my application I am getting normal preview but while saving it is rotated. The reason why I need to

Re: [android-developers] Re: Android camera orientation problem

2012-10-23 Thread Haris
Hi thanks all for your replays.. Yesterday I have checked some application from google play like pudding camera etc. and it's working perfectly. Even if I access the default camera from my application I am getting normal preview but while saving it is rotated. The reason why I need to

Re: [android-developers] Re: Android camera orientation problem

2012-10-23 Thread Adam Ratana
Haris, check the link I provided, this is code you can call which will make the camera orientation the same as the activity orientation. for instance if you set the activity orientation to portrait, calling the method will also rotate the camera preview --

[android-developers] Re: Android camera orientation problem

2012-10-22 Thread spartygw
Camera.setDisplayOrientation works for me, I could never seem to get any rotation stuff to work that I tried to set using the Camera.Parameters. -gw On Monday, October 22, 2012 2:23:46 AM UTC-4, Haris wrote: Hi all For my application I am using android native camera and previewing the image

[android-developers] Re: Android camera orientation problem

2012-10-22 Thread Haris
I don't know why it's not worked with me. If I set orientation as portrait in manifest file I am getting 90 degree rotated image in my preview. But in the case of landscape orientation I am getting normal image in my preview while my phone orientation is portrait I know it is 90 degree rotated