Disabling the orientation landscape

I use jdev 12.1.3

Please let me know how to turn off the orientation landscape for my application?

concerning

Deepak

At the moment we do not provide an option for that.  Probably because it is frowned upon by Android developers to restrict the application to a particular orientation (see: https://stackoverflow.com/questions/6581120/how-to-make-an-application-to-run-in-portrait-mode-only), but also no doubt, this would be true for iOS too, and yet we do not provide the options there.

I will raise an ER for us to add this as an option for the Android deployment profile, because it is technically possible to modify the androidmanifest.xml to do this, ignoring best practices.

Your solution for now is to locate the AndroidManifestr.template.xml file in the /jdeveloper/jdev/extensions/oracle.maf/Android directory and add the following (according to the stackoverflow example):

Android: screenOrientation = "portrait".

.. .to the relative activities.  I tried adding it to all activities, but you can work through a test of elimination what activities it is necessary.

Note You must remember that you have modified the JDev AndroidManifest.template.xml file and change for future application development.

CM.

Tags: Oracle Mobile

Similar Questions

  • Splash screen detects is not the orientation landscape on Z10

    I'm working on an application on BB10 webworks and I try to put both a portrait and landscape of the start screen. I followed the API document using screen resolutions, but it does not draw the start of landscape screen (use only one portrait). I test this directly on the Z10 using a debugging token.

    My config file is:



    It seems that the 10.1 update fixed this problem for me. The application is now coming the start screen correct based on the orientation of the screen.

  • Deactivation of the orientation of the screen for my application.

    Hello Sir/Madam,

    Please tell me how can I disable the orientation of the screen as my app looks good horizontally. Thanks in advance.

    Kind regards

    Sandesh

    This can be achieved by adding the code to your file config.xml below

    
    

    Please see the link for more details below. http://docs.BlackBerry.com/en/developers/deliverables/27280/Widget_element_834671_11.jsp

  • Combine the orientation portrait and landscape

    Hi, my requirement is to build a rapport with the first 3 pages in portrait orientation, the fourth page in landscape orientation and the fifth page with orientation portrait again.
    Is this possible?
    Thank you.

    Use 3 different sections: header - hand - end.
    You can set the orientation section.

  • I need portrait page orientation but the current orientation is landscape. How can I change the orientation?

    My monitor is square, not wide like the recent monitors. I want to be able to view an entire page without having to scroll from right to left to see much on the right side of the screen, what is hidden without scrolling.

    Hi martinb14127,

    Please check if will help to change your screen orientation with resolution:

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/display_change_screen_resolution.mspx?mfr=true

    Also, if this does not help, I would check with the manufacturer of the monitor for the driver/firmware updates or instructions on the definition of the orientation of your monitor in particular possible.

    I hope this helps!

  • Portege M700 - need help with the orientation of the display

    I'm a host of training courses; Unfortunately, I am disabled so I need to use the features of the tablet to avoid having to use flip charts. However, I ran into a few problems...

    * I have not worked on whether or not it is possible for the direction of the projector to change when you switch to Tablet mode. I would like to use the tablet to secondary landscape, but then it appears on the screen in reverse!
    * I don't seem to be able to get the Rotation utility button to work. It works as an alternative to the [ESC] but holding down (as mentioned in the instruction manual) does not seem to change the orientation.
    * How a TOSHIBA UK contact on operational issues? I look through the site of support here, but I found this excellent forum, it seems no way to contact Toshiba themselves.
    I hope someone can help me!

    See you soon,.
    Peter

    Hello

    may I ask if the operating system has been installed from scratch or recovery media? Another good question is to check if the new version of all the tools and drivers are installed to make sure that everything is up to date.
    What service pack is installed?

    With regard to your "contact-toshiba-problem:

    Toshiba itself cannot be contacted, you must work with the Service partner authorized in the United Kingdom, which means that you should look for an ASP, contact them and ask them what you need.
    Here´s a link to an index of ASP: http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/download_whitepaper.jsp?service=EU&WHITEPAPER_ID=0 000000871

    Welcome them

  • The Orientation of the display locking force

    Hi, I am currently using Ui.getUiEngineInstance () .setAcceptableDirections (Display.DIRECTION_PORTRAIT) to lock the screen in portrait mode. It works fine if I start my application, the BlackBerry is in portrait position (stays of the display in portrait mode even when I change the orientation of the device in landscape mode), but when I start my application in landscape position, the fields on the screen become a mess and I need to change the orientation of the device to portrait before he become the locked in this position.

    Is there a way of force / set the display in portrait mode, when the application is started landscape orientation?

    Hi alfonsn,

    Check out this link...

    http://supportforums.BlackBerry.com/T5/Java-development/disable-screen-auto-rotation/m-p/1028509#M15...

    ------------------------------------------------------------------------------

    Please click "Accept the Solution" for positions that offer the solution to the question you posted. Not to say 'Thank you', press 'Like' button above!

  • Need help with the orientation of the screen on iOS (app rejected)

    Hello

    I have a single application of landscape, which was rejected by Apple. Please read their comment of rejection below:

    ------------------------------------------------------------------------------------------ ---------------------------------------------

    10.1


    We found that your application does not meet the iOS of Apple Human Interface Guidelines, as required by the App Store Review Guidelines.


    Specifically, we noticed your app only supported the left-top variant of landscape, but not the top-right variant.


    All supporting both variants of these types, each with unique launch images, offers the best user experience and is recommended, we understand that there are some applications that must run in the direction landscape only. In this case, should support the two variants of this orientation in your application, for example, the Home left and right button.


    This issue generally requires only a change to the code simple and clear. However, if you need help, the Team of Support Apple Developer is available to provide assistance at the level of the code.

    ------------------------------------------------------------------------------------------ ------------------------------------------------

    I wondered about this myself. How can this be repaired? I know there must be a way.

    Thanks for any info you might have.

    I didn't think to disable the auto-lock on the iPad.

  • Photos for iOS change the orientation of the cultures

    How can I change the orientation of the culture of the landscape to portrait on a landscape photography. That Exchange crop 6 x 4 to 4 x 6 to create a photo portrait.

    I can do this in the application Photoshop Express, but not in the Photos app.

    I use iOS on iPad Pro 9.3.2.

    Concerning

    Schof

    Hello. This article may be useful: iPhoto for iOS (iPhone): culture, straighten, or rotate a photo

    Info taken from this article:

    To crop the photo, do one of the following:

    • A photo of a standard (or size) image format, the value such as 2 by 3 inches: touch > size.
    • Customize the size of the image and the positioning of the photo: drag the edge of the photo to change the size of the image, and then drag the picture to reposition in the framework.
    • You can pinch with two fingers to zoom in and adjust the picture inside the frame.
  • change the orientation of the timeline after turning the video

    I change a few videos of the iPhone which was shot in vertical, and then moved to landscape while shooting it.

    The result is a vertical video that must be changed in landscape, I could make using the transformation function.

    Now, the video will appear in the display window in the landscape, which is what I want, but the video editing is always horizontal. How can also change the orientation in the timeline panel so it will be easier to edit?

    I remember doing this in iMovie and the porthole and orientation of the timeline has changed at the same time.

    Thanks for your help!

    My difficulty was to use iMovie to change the orientation, then using "Send Movie Final Cut Pro."

    In iMovie, I clicked on the button crop, which then revealed the rotation buttons.

    Direction then changed as well in the viewing window as well as the timeline. then I went to > file > film send to Final Cut Pro

    I would like to know if there is a way to do all this in FCP.

    Thank you!

  • I installed a seocond monitor. How can I change the orientation of the screen on a monitor?

    I use the second monitor to view the documents. For a complete view of the document, I want to landscape orientation. I turned the monitor, but cannot change the orientation.

    John

    This will be using the graphics card, in the display properties, if your card supports the use of two monitors independently and different directions, you'll be fine. I have never tried this way, I use two independent monitors both the same way. I'm guessing that you may need a high-end or enough new graphics card.

  • Disable the hardware buttons

    I would have a configuration option to disable the hardware buttons. Working in landscape mode I touch them often by accident.

    Thanks for the tip. I have an Asus Transformer who charge OTA firmware updates autatically. I am now on the current version of the firmware and the isssue is resolved. What I really need to check manually for updafes or can I apply somewhere to learn about new versions of firmware? Stephan

  • Definition of the orientation of the device

    Hello

    How do you define the orientation of the device in PlayBook?

    If I try it is the only direction I can use (landscape left, all others interrupt the program):

    CCDirector::sharedDirector()->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft);
    

    You can set in the descriptor bar if you only set a direction for your application.

      true
      landscape
    

    See you soon,.

    Jon

  • How do I refresh the page on the orientation using Blackberry 9800 "BOLD" change

    Hello everyone,

    I'm working on an application in which I use both portrait and landscape. But the problem is that if I start the application in profile mode then it adjusts the image according to the style of portrait but I change mobile orientation in landscape mode on the screen even Conversely it will not change in size and based on this image... Like the following picture:

    Although I usinng such formula for resize and I have these images based on different sizes, but it is not updated. Kindly tell me how I can do it.

    final _backgroundBitmap Bitmap = Bitmap.getBitmapResource (Display.getWidth () + "x" + Display.getHeight () + ".png");

    for example 480x240.png, 640x360.png

    VerticalFieldManager CurvedSquareImage = VerticalFieldManager(VerticalFieldManager.USE_ALL_WIDTH | nouveau VerticalFieldManager.USE_ALL_HEIGHT)
    {
    protected void sublayout (int mWidth, int mHeight)
    {

    Super.sublayout (Display.getWidth (), Display.getHeight ());
    setExtent (Display.getWidth (), Display.getHeight ());

    }
    public void paint (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, mWidth, mHeight, _backgroundBitmap, 0, 0);
    Super.Paint (Graphics);
    }

    };

    Thanks in advance.

    I keep seeing this code, I would like to know where it comes from:

    protected void sublayout (int mWidth, int mHeight)
    {

    Super.sublayout (Display.getWidth (), Display.getHeight ());
    setExtent (Display.getWidth (), Display.getHeight ());

    }

    This sublayout() is not correct for two reasons:

    (a) If you want to limit the height and width of the Manager, you must make sure that your Manager is already limited to something less that what you try.  So, you should do something like:

    Super.sublayout ((Display.getWidth (), mWidth) Math.min Math.min (Display.getHeight (), mHeight));

    In this case, it seems you have the toolbar at the top, likely in the area of title or the banner of a screen, and so you have in fact the entire height of the screen in any case.

    (b) If you ask a Manager to ask, then you should respect the size it uses.  If you force a size using

    setExtent (Display.getWidth (), Display.getHeight ());

    then you have potentially confused it because he thinks he has the size, he asked, and actually require you to use a different size.

    Please correct that code and correct whenever you use it.

    I recommend you round eye for documentation and examples for managers to understand how you use one before you start the substitution of methods.  I particularly recommend that consult you this:

    http://supportforums.BlackBerry.com/T5/Java-development/MainScreen-explained/Ta-p/606644

    because it will help you understand how to tell a Manager to use all of the space available to it.

    Now to your problem.

    On the reorientation, sublayout for your handler will be called, so he will have to choose the correct image.  Now, if you change the image in the layout, you actually ask the device to the new layout in the layout, and he tells you that he cannot do it - it will throw an exception.  It must be so, in sublayout, use the code as follows:

    UiApplication.getUiApplication () .invokeLater (new Runnable() {}

    public void run() {}

    update the bitmap here

    }

    });

    What this will do is update the image and the update will force another layout of all fields - in other words sublayout will be called again, but this time with the right image.

    Because sublayout will be called once again, you must be sure that you start the update of the Bitmap again.  So what I do usually is an indicator that specifies the orientation that I expect, and if it changes, set it to the new orientation and pitch upgrades required due to the change.

    Put logging statements in your code to sublayout to make sure that you are having problems of infinite loop in there.

  • Doubts in the Orientation of the screen

    Hi guys, I'm developing my component. In it, I add the LabelField which displays the width of the screen, and when I change the orientation, the LabelField does not replace the old width of the labelfield, but may make changes to the things that are done in the paint while screen orientation.

    How to change.

    It's code

    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Manager;
    
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    import net.rim.device.api.ui.component.LabelField;
    
    /**
     *
     * @author rakesh_2
     */
    public class Component extends Manager
    {
        LabelField ld;
        int val;
        String s,s1;
        Font ft,temp;
        Component()
        {
            super(Manager.FOCUSABLE);
            chk();
            ld=new LabelField(s);
    
            this.add(ld);
    
        }
    
        protected void sublayout(int arg0, int arg1)
        {
            chk();
    
            Field ff=this.getField(0);
            this.setPositionChild(ff, 5, 5);
            this.layoutChild(ff,Display.getWidth(), Display.getHeight()/2);
            this.setExtent(Display.getWidth(), Display.getHeight()/2);
    
        }
        public void chk()
        {
            val=Display.getWidth();
    
            s=String.valueOf(val);
            s1=s;
        }
        public void paint(Graphics g)
        {
            g.drawText(s, 15, 15);
            super.paint(g);
        }
        public void paintBackground(Graphics g)
        {
            g.setBackgroundColor(Color.LEMONCHIFFON);
            g.clear();
        }   
    
    }
    

    So how do you change the LabelField width on the orientation of the screen?

    Concerning

    Rakesh Shankar.P

    The values returned by Display.getWidth and Display.getHeight need to change after the rotation of the screen.  Screen rotation may or may not change the size of a field.  For example a field cannot take the width of the screen in portrait or landscape mode, so you won't see any changes.

Maybe you are looking for

  • iPod shuffle will not work on windows 10

    Windows 10 strikes arrive again i pod shuffle to work. Tried everything. Many areas "grayed" out in the menu, sync etc.. When I click the sync "ipod sync" button but no music at all the

  • Difficulty er: 0x800106ba

    I need open windows defender. But every time I get er; 0x800106ba

  • Automated Webinar reminders an hour before the event

    HelloWe do not use the typical WebEx or Adobe Acrobat Connect Pro for our Webinars so I need some suggestions on the establishment of an automated reminder email out an hour before the event. I tried several ways to set up in rural areas, but I'm stu

  • Long the woes of the time, my head hurts.

    Okay, so I did a few test runs or make time lapse videos on the Prime Minister, and they worked just great. Import > click on the first picture > click on 'images in sequence' > OK > drag in the timeline > export, enjoy.However, I have some little la

  • Push email suddenly does not work?

    Hello I had very few problems with the pre previously (except battery life, but I'm learning how to keep), but from around 10:00 this morning, I stopped to push email.  I upgraded 1.0.3 Friday, things worked just fine over the weekend, but for some r