Camera Orientation issue in landscape mode application

Hello Team,
I have developed one application and it is totally in landscape mode. I have one problem with opening camera in landscape mode. I have given only one orientation support "Landscape-Right" in .plist file . So that when i click Record button in my application at that time application crash and it gives me an error
'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'
I have also read that iPhone support only Portrait mode for opening camera . In my application i have forcefully changed it to landscape using custom overlayview.
Anyone have any idea regardig this?

Please ignore, I have finally found the problem.
I was initializing the UIView in my ViewController with the CGRect defined when in Portrait (bounds). So when I turned the device to go into landscape it was still using a portrait frame.
I'm now initializing the UIView with: CGRect appFrameLandscape = CGRectMake(0, 0, 480, 320);

Similar Messages

  • Camera orientation (issue) while the orientation is fixed

    Hi!
    Iam using iphone 4, and i found a very nasty thing, i dont know its an "issue" or just a logical bumping, anyway its very annoying.
    While the portrait orientation is fixed, the camera orientation is going to be fixed aswell, but of course most of the people are turning while shooting (especially video) by 90 degrees, and because of the fixed orientation, the created video is going to be disoriented.
    So i think the camera has to be excludes from the "globalized" orientation fixing, even its locked too. And of course after a wrong shooting, there is no way to fix this on the phone directly..
    Any tips, or advice ?
    Cheers,
    Ku5i

    Take the picture while holding your phone as such that the volume buttons face downward.

  • Auto orientation only in landscape modes, text centering when typing

    Hi,
    I have two problems:
    1. I don't want to rotate my app when device is in portrait position, only flip it horizontal when it is rotated to another landscape position
    2. Text is not centered when typing into input textfield with centered text (but it is ok after confirming).
    Any help would be very appreciated!
    Thanks!

    I've had to solve this problem (#1), and there are many aspects and difficulties to it. I wrote up a long email about the problem, which I'll paste here. Hope you can follow along!:
    I’ve wanted to do autorotate landscape only, and thought that I only had the choice of either autorotate to all four orientations, or no autorotate at all, but I just looked into it, and through reading three different topics here, I managed to do achieve everything I wanted. So I’ll write it up here in case someone else doesn’t have as much luck searching through the old messages.
    In my particular case I have two reasons to want to be landscape: 1. The design is a landscape one, and not one that can easily be rearranged into a portrait mode. 2. We have gameplay that involves tilting the device, and although it’s fine tuned to work in a narrow range of tilting, people keep on tilting so much that the portrait mode kicks in. With the right kind of game, you could really lose your marbles when that happens!
    Those problems can be solved by not autorotating, and finding a way to force landscape. But then that runs into another issue. If it worked that way, an iPad version would be rejected by Apple.
    There are several problems to solve (which I think also apply to Android):
    Autorotate without allowing normal or upside down portrait.
    Make it be landscape from the start even if the user is holding it in portrait as they open the app (setting that in publishing doesn’t achieve the goal).
    Allow someone to change their mind about which landscape they want to use.
    Here’s the way to solve the first issue:
    stage.addEventListener(StageOrientationEvent.ORIENTATION_CHANGING, orientationChangeListener);
    function orientationChangeListener(e:StageOrientationEvent) {
    if (e.afterOrientation=="default"||e.afterOrientation=="upsideDown") {
    e.preventDefault();
    Once you’re in normal landscape, you can only be in normal landscape or upside down landscape. The Portraits are prevented from happening, because StageOrientationEvent.ORIENTATION_CHANGING happens before the autorotate kicks in.
    Making it be landscape from the start can be done like this:
    stage.setOrientation(StageOrientation.ROTATED_RIGHT);
    but that would only work well for the majority. People who like to hold the device in the upside down landscape would be frustrated. So that can be taken care of by looking at which way the device is at the time the app is opened. Also, as it may initially be in Portrait (because the user doesn’t yet know that your app is landscape designed), you have to decide with landscape to give them. I reason that giving them the normal landscape would be the safer bet. That all comes out as these lines:
    var startOrientation:String=stage.orientation;
    if (startOrientation=="default"||startOrientation=="upsideDown") {
    stage.setOrientation(StageOrientation.ROTATED_RIGHT);
    } else {
    stage.setOrientation(startOrientation);
    That’s nearly all the problems solved, but there’s one last one, which I’ll log a bug about (once there is an iPhone beta again). If you open the app in rotatedright and then change your mind to want to use it as rotatedleft, the autorotate works wonderfully. Unfortunately, if you start in rotatedleft and then want to use rotatedright, the autorotate does not work, no matter how many contortions you do. You have to quit the app and hold it in portrait or rotateright from the start.
    This turns out to be easily worked around, by doing the counterintuitive step of setting Portrait in publishing settings. Then when you tell it to be one of the landscapes by doing stage.setOrientation, the app can tell that going from rotatedleft to rotateright is a change of rotation, because it already got kick started with a change away from the default setting of Portrait.

  • Problem with rotation and landscape mode in iOS 8

    From start of iOS 8 I have got problem with rotation in my iPhone 5S 32GB as well as in my iPad mini retina 32GB. Automatical rotation to landscape mode is not working correctly. For example if you take the phone or tablet to landscape mode in base display and tap to Safari, Mail, Messages, the app will start but stay in normal mode, not landscape. Then you have to back the phone to normal portrait mode and back to landscape and only then the phone do the landscape mode. I have never seen this problem in iOS 7 or older.
    Could you help me anyone with this problem? Or is the problem generally in iOS 8.
    Thanks a lot
    Jakub

    Brian, thanks, but it's not a rotation lock issue - at least not relating to the rotation lock setting. It's just a general use setting. Right now i have my iPhone propped in landscape mode. If I now hit the home button, essentially returning to a portrait setting though my phone is still positioned in landscape, then open any other app that supports landscape, that app WILL NOT orient itself to landscape mode. It will stay in portrait mode. The phone has to be physically oriented to portrait, then back to landscape for the app to register landscape mode properly. This is a glitch, and not a rotation lock issue. it ought to be noted that this was not an issue in iOS 7 or any previous iteration.

  • IPhone keyboard in Landscape Mode

    Hey,
    Is any one else having the same issue ? Any solution is appreciated. When I use my iPhone keyboard in landscape mode (application - gmail) some of the letters in the keyboard don't pop-up. The keyboard inputs the letters in the mail however the on-screen prompt for a key being pressed (letters jumping up) does not happen. It happens for different letters each time. I have seen 'q' key do that .... r some times etc. It is not just the first row of letters too. I have seen other letters.
    I reset the phone, restored it and even got a warranty exchange. I still have this issue. Any ideas ?
    Peace...

    Link below is the official Gmail Mobile Development Blog. So you may find some contact or feedback info there.
    http://gmailblog.blogspot.com/2008/01/new-gmail-for-iphone.html

  • IPhone 6 plus keyboard locked in landscape mode

    When i tried to search song in music app in Portrait mode , keyboard is in landscape mode and its not coming back to portrait mode as the screen in portrait mode.
    I have observed three more issues :
    1. Wify issue . its dropping the network information
    2.Orientation issue
    3.landscape keyboard crashes if we use '< '& '>' keys if any text is selected for copy
    please check and update me for this poor apple fan

    settings>general>message>raise to listen=off!
    and it will work

  • Generation of report in landscape mode using PDF template

    Hi,
    I am creating a report using pdf template, I have used the repeating group i.e I have used the code <?rep_field="BODY_START"?> and <?rep_field="BODY_END"?> as the repeating area and with the field which needs to be repeated i have used the code <?rep_field="T1_G1"?> in order to display data in the loop.
    But finally when the report is displayed, the report acts strange ...sometimes it fails to open says that an internal file read error occured , whereas if I remove the <?rep_field="T1_G1"?> code it works fine , other times if at all it displays the report, the values in the repeating field operlap each other and they are vertically oriented wheras for landscape mode it should be vertical, I tried setting the properties and locking the fileds but all in vain.
    Kindly help ASAP!!
    Thankz
    -Gaurav

    I have had the same problem for a year. I never got my TAR answered so I tried again. I am waiting...again. Portrait works fine for me. I am using it to generate po's with custom headers. The only part that does not work for me is the total appears on every page, not just the last one. If I get an answer, I will let you know...

  • Start app in landscape mode locked and later enable autoOrients

    Hi!
    I want to start my app in landscape mode locked and when an effect finished unlocks autorients to true and the user can change the orientation.of the device.
    I have tried few things but i can't get it. My descriptor file contains:
    <aspectRatio>landscape</aspectRatio>
    <autoOrients>false</autoOrients>
    And in my code when the effect is finished:
    stage.autoOrients = true
    When i play my app in desktop it run but later running it in a phisichal device (playbook) orientation its ever locked.
    ¿Is posible lock orientation (and force landscape mode) and later unlock orientation?
    Thanks so much!

    You should be able to do this now (AIR 2.6). The Stage.autoOrients property used to be read-only, but now it is writable. The main gotcha is that when you set Stage.autoOrients to false, the exact result is device-dependent. You might have it lock to the current orientation, or it might switch to the device default orientation and lock to that (you can still use setOrientation() to change, though). In my limited testing (3 devices), it has always done the latter (portrait is the default on phones, landscape on tablets).

  • I can't seem to get my iMac (late 2009 model) into automatic sleep mode.  If I manually put it into sleep I don't have any issues.  I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion.

    I can't seem to get my iMac (late 2009 model) into automatic sleep mode.  If I manually put it into sleep I don't have any issues.
    I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion. I now want to fix the underlying problem.
    I'm not running any weird background processes and in my energy saver settings I've tagged "put the hard disk to sleep when possible:, "allow power button to put computer to sleep" and "automatically reduce brigthness". All pretty standard.
    Is there anyone who can give me some pointers ?

    Today I solved the same problem for my iMac running Snow Leopard. See https://discussions.apple.com/thread/3008791#15947706. The method may help you, too.
    For me it was the DynDNS Updater preventing my iMac from automatically entering sleep mode.
    To my knowledge the cause of this sleep problem can only be a peripheral device or a process. So I suggest to first unplug all peripherals and test whether that's the cause. If not, I suggest to terminate one process after another and to test automatic entering of sleep mode after each. Start with user processes; continue with system process if necessary.
    At least that's the way I found the offending process. Fortunately, I was able to change the configuration of that process to allow again automatic entering of sleep mode.
    Good luck!

  • How can I lock my camera so it saves pictures in landscape mode

    How can I lock my camera so that it will take and save pictures in landscape mode. I use the iPhone 5, IOS 8.1.1.
    I take pictures with the camera held horizontal and the home button to the right. When I save the pictures to my iMAC in iPhoto they need rotation.
    I can't find a camera app in the Apple Apps Store.

    How can I lock my camera so that it will take and save pictures in landscape mode. I use the iPhone 5, IOS 8.1.1.
    I take pictures with the camera held horizontal and the home button to the right. When I save the pictures to my iMAC in iPhoto they need rotation.
    I can't find a camera app in the Apple Apps Store.

  • Screen orientation is locked in landscape mode

    Screen orientation is locked in landscape mode.

    Swipe up with 4 fingers, slide to the right, and tap the orientation lock button on the left of the music controls. If this button is not present, and instead replaced with a button with a speaker icon, slide the switch above the volume controls on the right side of your iPad. If that does not work, put your iPad into DFU mode (hold down sleep/wake button for 3 seconds, in addition to the sleep/wake button, hold down the home button for 10 seconds, and then, let go of the sleep/wake button, and hold the home button for 20 seconds, or until you see the "Plug in to iTunes" screen), plug into your computer, and force restore. Then, it should be fixed. Good luck!
    Thanks,
    frickiewolf

  • TS3694 pls help my iphone 4 was on activation "required". i jailbroke it then it worked but some of the applications were crashing down,won't open. i tried a lot of tutorials and then error message 3194 came out. stucked in recovery mode,itunes logo. pls

    pls help my iphone 4 was on activation "required". i jailbroke it then it worked but some of the applications were crashing down,won't open. i tried a lot of tutorials and then error message 3194 came out. stucked in recovery mode,and then i use snowbreeze and then it worked!!!! but another problem came, i turned off my iphone then i switched it on again then it stucked in apple logo,.after doing some thing again 1604, 1600 bla bla bla came out..pls help me fix my iphone.

    no help for jailbroken phones here-it's not allowed. good luck.

  • My iPad 3 will not change the orientation to landscape mode. I have checked the orientation switch and turned it off for a reset neither of which fixes the problem.

    My iPad 3 will not change the orientation to landscape mode. I have checked the orientation switch and turned off for a reset. Neither fixes the problem. What can I do?

    Is it lock in the Control Center? (tap to enlarge)

  • Is anybody having a swiping issue using iBooks in landscape mode?

    I have my car manuel in iBooks in my iPhone 4s but I just realized that when I try to swipe from left to right in landscape mode it doesnt change the page until the second attempt. It does it all the time!  The page moves but doesn't go to the previous page. Anybody having this same problem?

    Please ignore, I have finally found the problem.
    I was initializing the UIView in my ViewController with the CGRect defined when in Portrait (bounds). So when I turned the device to go into landscape it was still using a portrait frame.
    I'm now initializing the UIView with: CGRect appFrameLandscape = CGRectMake(0, 0, 480, 320);

  • Landscape mode trash can GUI issue

    This is a minor problem but one that surprised me that Apple didn't catch. When emptying the trash can in landscape mode in email, the lid of the trash can opens up and beyond the grey border. That's a rather ugly GUI effect.

    Let Apple know at: http://www.apple.com/feedback/ipodtouch.html

Maybe you are looking for

  • Problem to print character mode report in Landscape

    I set orientation and select but it still print in landscape character mode. When it print in character mode report in portrait format its ok. I Set and use all the option in report to print in Landscape in character mode. I ask you please to give me

  • Essbase Studio: Error building essbase cube

    Hi guys. When I deploy an ASO cube, I receive this message: "Error al generar el cubo de Essbase. Provocado por: Error al cargar datos en la base de datos: bd25. Provocado por: Cannot Load buffer Init. Essbase Error (1013295): Server Request Fails wi

  • Mass editing ID3 Tags

    How can I edit over 3000 songs with no current ID3 tags? They all show up as [Artist-Partial Album Name...] in the song title space, with no song titles in sight. Is there a free application I can download that can identify these songs and rename the

  • Dust inside the screen of my Qosmio G20-136

    Hi, I have a weird problem on my Qosmio G20-136, there are 2 spots of dust inside, and recently a very small insect manages to get between the LCD on the protective sheet. I can assure you I though I was mad watching the insect moving without being a

  • Deploy virual machines using SCCM

    Hi Team, I want to deploy windows 7(64 bit) on a VMware ESxi server by using SCCM task sequence .Please tell me can we image it using SCCM? If not please tell me what are the prerequisite for this. Also tell me what is SCVMM (Virtual Machine Manager)