User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Screen rotation issue

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Screen rotation issue

    The Nokia N97 is an example of a phone which supports both portrait and landscape mode. The user can change it anytime by opening the keyboard. When this happens, the phone automatically turns everything to landscape mode. If MMF2 java app is set to rotate the screen by 90 degrees (to make it appear properly in portrait mode), the result is an unusable app. See examples below with my test app:



    The first pic above is good. Because of being able to rotate the screen in MMF2, the app looks good in portrait mode, even though built as a normal 640x360 app in MMF2.

    Now, the user changes the phone orientation (not app orientation, but the whole phone UI) to landscape mode:



    This is how the app looks now; it becomes unusable. Changing back to portrait luckily works, though sometimes there are some graphical glitches on the screen. The problem is more severe however when the user launches the app in landscape mode and may not know that it works only in portrait. As a developer I need a way to communicate this to the user.

    What would be great, is

    1) ability to detect (in MMF2 java app) whether the phone orientation is currently landscape or portrait

    --> this would enable the developer to display a message to the user, "change back to portrait mode" or similar or switch to a frame that is built to optimize usability in these type of cases

    Here is some discussion on how to do this in J2ME: http://discussion.forum.nokia.com/forum/showthread.php?t=127977

    2) same as above + ability to change the screen rotation at runtime. This might not be feasible due to how MMF2 is programmed (?) but even (1) would be really helpful.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Screen rotation issue

    Any comment? Is (1) possible in future release of MMF2 Java runtime or rather unrealistic?

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Screen rotation issue

    It is possible. I have to look at it.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Screen rotation issue

    Thanks

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Screen rotation issue

    OK, I have converted the NokiaKeys object into a MobileUtilities object. It contains the detection of the keys, but also things to manage the rotation of the screen and the application.
    MJK could you test it for me, as I do not have a phone that allows screen rotation?

    Thanks for you help.

    EDIT: I've removed the file, ask me if you want it. Yves.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Screen rotation issue

    That was fast! Sure, I'll test it later today on the N97.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Screen rotation issue

    Is there any chance of being able to incorporate the gyro sensor into this or any other java build?

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Screen rotation issue

    The problem is that the API to handle the sensor depends on every manufacturer. It is a really hard job to handle all the possible APIs. I just dont have time for this. We'll see...

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Screen rotation issue

    Quote Originally Posted by Francois
    OK, I have converted the NokiaKeys object into a MobileUtilities object. It contains the detection of the keys, but also things to manage the rotation of the screen and the application.
    MJK could you test it for me, as I do not have a phone that allows screen rotation?
    Ok, just tested this. Rotation worked at runtime, yay! The only thing - essential one - which didn't work was "Get screen orientation"; when I tried to retrieve it to a counter, it just stayed at 0 all the time. "Get window rotation" worked fine.

    So basically if you're able to make the Get orientation function work, then this should be perfect. Because that would obviously allow us to do something simple but very useful like this:

    Orientation = 0
    -> set window rotation to 1

    Orientation =1
    -> set window rotation to 2
    (or similar)

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Screen rotation issue

    OK, I have another way of implementing it, but if this one does not work, I do not know what to do...
    Before I send you the file, can you tell me if your version of MMF is build 249?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Orientation Change and Screen Rotation
    By algiz in forum iOS Export Module Version 2.0
    Replies: 9
    Last Post: 26th September 2011, 08:41 PM
  2. How to do screen rotation?
    By mag_news in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 14th April 2011, 08:39 PM
  3. Full screen rotation in HWA?
    By Pixelthief in forum Hardware Accelerated Runtime
    Replies: 13
    Last Post: 21st January 2009, 07:04 AM
  4. Active Picture - rotation issue
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 1st September 2007, 04:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •