Note that there are some explanatory texts on larger screens.

plurals
  1. POworking with camera in android
    primarykey
    data
    text
    <p>I'm working on an application in android which uses the camera and I'm facing the following issue.</p> <p>1.If I simply take a picture with no special settings for the camera(orientation settings I mean) also the preview and my resulting picture will look like this: <a href="http://i51.tinypic.com/xfx3jq.png" rel="nofollow">http://i51.tinypic.com/xfx3jq.png</a> which is not right at all. Now what I do with this picture is to upload it to a website where is set up with the same orientation!!!</p> <p>2.If I setup my activity in the <code>LANDSCAPE</code> mode then my picture will look like this: <a href="http://i56.tinypic.com/152c41e.png" rel="nofollow">http://i56.tinypic.com/152c41e.png</a> with the buttons setup the way you seee.And any extra view is setup wrong like in here: <a href="http://i56.tinypic.com/16ifxqx.png" rel="nofollow">http://i56.tinypic.com/16ifxqx.png</a> which is extremly wrong. And above all when I upload the picture to a website is not orientated corectly anymore and it looks like this: <a href="http://i51.tinypic.com/xfx3jq.png" rel="nofollow">http://i51.tinypic.com/xfx3jq.png</a>.</p> <p>How should I proceed in order to get a corectly orientated picture with the extra view looking normally and when I upload it to the website to look also vertically orientated??? Thank you!</p> <p>I must say that I'm bulilding my own camera in android.</p> <p>EDIT: I tried </p> <pre><code>Camera.Parameters p = mCamera.getParameters(); p.setRotation(270); mCamera.setParameters(p); </code></pre> <p>but has no effect upon my image!</p> <p>EDIT:</p> <p>in my <code>onCreate()</code> I've setup my orientation this way:</p> <pre><code>this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); </code></pre> <p>this makes my image look the way I want to look, but my views are setup astray and when I load the image to a website it comes back to the initial orientation!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload