[Q] Rotate Entire App (while maintaining system rotation) - Java for Android App Development

So I'm making a "smart mirror" which is powered by a Galaxy S4 (International variant, 4.4.2 Rooted). I am connecting it to a 19" monitor via the MHL adapter, through an HDMI-->DVi converter, then plugging in to the monitor via DVi. The monitor does not have any native image control beyond color/contrast/brightness.
Initial Problem:
Image:
http://i.imgur.com/B7yeVcP.jpg
When the phone is landscape, it will fill the monitor horizontally. When the phone is portrait, it will letterbox the portrait view in to the center of the screen so that it is "right side up" . The problem is that my monitor is physically rotated 90* to be in portrait mode itself. Ideally, I'd want the phone to be in portrait and then output it to the monitor which would fill the screen in portrait mode, but this is not possible as far as I know.
Here's how I'm solving the problem temporarily. I'm just playing with image previews right now, so I made the image in landscape orientation with the content sideways.
This produces the result I want. http://i.imgur.com/P92PPPm.jpg
If there is a way to control the MHL output settings, PLEASE SHOW ME! I do not think this is possible though.
So I think I'm going to do this:
-------------------------------------------
The first step to my solution so far is to write my own app to handle everything, and have that app built to display sideways. This is good since I will be creating my own interface for the mirror anyway.
In this situation, ideally I would want to develop the app in portrait orientation with the content right side up, then when I am ready to try it on the mirror, have the app run in landscape mode but with the content turned sideways. There should be no visual difference between these two states on the phone, the only difference is that my monitor will display it to fill the screen.
Alternately, I could build the entire app in landscape mode, and build all the content rotated 90*. This would result in what I want but would be very annoying to work with in the build stage. Regardless, it is better than nothing. If this was the case, I would also be looking for a way to rotate my view in eclipse so that I am viewing the content right side up, but the phone sideways, as opposed to the default condition where the content is sideways but the phone is represented correctly.
If you have an idea on how to make any of these solutions work out, please help me out! If I am being confusing, let me know and I can try to make an image representation.

Related

Mirror Screen Driver/Software

As I drove home in the dark with the satnav on I caught the reflection of it in the screen and thought, This would be cool If I could leave the phone on the dash and I could set the display to Mirror making the reflection readable on the windscreen Kind of like a Heads up display.
Is this possible with windows mobile? can anyone code a screen mirror application that works like the screen rotation apps that work with the internal gyro sensor?
I have noted that the idea has been kicjked around but nothing solid has come of it.
http://forum.xda-developers.com/showthread.php?t=576355
Thanks
I'm actually looking for an app that mirrors the display so if you held a mirror next to the screen you would be able to read it ok from the mirror..
I saw a picture of an HTC WinMo phone that was broken and was showing the screen mirrored once, which would indicate that the hardware can support this functionality.
Is it possible that the configuration for the display driver would have a registry option for something like this? I know that some webcam drivers in Windows have hidden registry entries for this (I've had to track them down in the past due to cameras mounted in strange ways and people wanting mirrored images instead of photograph style).
Edit: I saw it here http://www.modaco.com/content/black...78157/rather-serious-touch-hd-screen-problem/

[Q] Force portrait mode?

Is there a way to force an application into portrait mode or spoof/disable the accelerometer to maintain portrait orientation across applications? Ideally in the long-term it'd be nice if there were an elegant solution for handling portrait vs. landscape devices and screen rotation - or maybe more apps just need to take this into account - but a workaround for apps that don't would be nice.
My primary use case for this issue is when lying sideways, holding the tablet sideways to read on the Kindle application. The tablet thinks it should be in landscape mode, but I want it in portrait mode lying sideways with me so I can read it. The Kindle application can lock itself, but it always does so into landscape mode on tablets. This is inconvenient since it is easier to read on narrower displays (it's trickier for your eyes to wrap around to the beginning of the next line the longer those lines are).
Using the CyanogenMod beta I came up with a workaround - be sure you have the 180 degree/upside down rotation position disabled so that the display won't flip upside down - now when you turn it upside down it will stay in whichever portrait rotation it was previously in. Unfortunately, I was not able to figure out a similar workaround in Beast ROM since the display always rotates, even to the 180 degree/upside down position.
Now I might like to switch back to CyanogenMod in the long term (I use it on my Nexus One and like all the options and developer goodies it gives and it's kinda neat/convenient to be running similar software on both devices), but I think I currently like the Beast ROM better since it feels more solid and less buggy (it's particularly embarrassing trying to explain to friends why the camera orientation is messed up in CM >_>).
Anybody have any other solutions/workarounds for this issue? particularly something that might work with Beast rom?
~Troop
I would also really like to know if this is possible, for basically the exact same reasons you would.
In the past I would have thought that this would be a really high priority issue, but my experience has been bookreading does not appear to be a very highly used application of pdas/tablets - I remember when the HTC G1 first came out, there was a surprising lag before usable bookreader apps were released...
Just incase anybody is interested, I brought up this question on stackexchange as well:
http://android.stackexchange.com/qu...fault-screen-orientation-in-android-specified
There are apps that should lock you in to portrait or landscape. Just install one on your device and you should be good to go. Here is an example:
https://market.android.com/details?id=kennethcheng.com.autorotate&feature=search_result
blazingwolf said:
There are apps that should lock you in to portrait or landscape. Just install one on your device and you should be good to go. Here is an example:
https://market.android.com/details?id=kennethcheng.com.autorotate&feature=search_result
Click to expand...
Click to collapse
thanks, but unfortunately the problem is more complicated than that. Once you turn off auto-rotate, your device goes back to its default orientation mode.
For a tablet, that is landscape

Uncontrollable Orientation Behaviour

When applications that are GPU accelerated are switched to full screen, the screen orientation always switches back to default (with the Asus on the Transformer logo on top). This is regardless of the orientation you have set.
For example:
A)
1.) You have rotated your screen upside down
2.) you run Angry Birds
3.) the screen switches back to standard default orientation
B)
1.) You have rotated your screen upside down
2.) launch youtube
3.) play a video
4.) switch to full screen
5.) the screen automatically switches back to standard default orientation
I have upgraded to 3.1 recently and don't seem to remember this being an issue before with 3.0.1 before.
Is anyone else also having this issue?
ok, is anyone with 3.1 NOT having this issue?
I get the same thing happening, and I think I would go as far as to say that it's actually intentional behavior on the part of Asus and Google to make the orientation revert like that. It makes more sense for fullscreen video to default to that orientation so as to ensure that it's consistent with the proper docking position, which is with the docking port on the bottom. Most people who watch fullscreen video for any extended period of time are probably going to dock the device.
Why do you turn the tablet upside down in the first place? I understand that having the ability to rotate 270 degrees is sometimes helpful for games and multi-user applications, I just don't see how using the tablet in its default orientation would pose a problem.
I'm typing on phone so briefly, the reason I need the transformer to be upside is due to the design of the variable angle stand of the official asus transformer skin case.
The case stands by folding in a scalene triangular fashion.
20 degrees above horizontal requires upside down.
75 degrees above horizontal requires right side up.
So most of the time when you use it in your lap, you want only 20 degrees
Applications are allowed to overide the orientation. This is true for most media players. It'll force the screen into the default landscape mode. App controlled so not honeycomb issue
Sent from my Transformer TF101
Sounds like a bit of a design oversight on the part of Asus.
Now as far as fixing it, you only have a few options. While you do have the ability to disable auto rotation on the screen, that's going to cause the tablet to simply default to the 0 degrees landscape orientation. What you need on top of that is a way to manually set your orientation, and so far I've never seen an app or ROM that does that. That's not to say it's impossible, just that I've never seen it done. The other option is to buy the keyboard dock, but that's a little excessive unless you really think you need it.
This is due to the fact that the dev of the app has forced it to lock in that orientation (landscape right side up, there's an app called androsensor that will give you more info). There was another thread concerning the same topic in themes and apps section. Your best bet is to email the app developer when you run into this.
One example is airport mania, if you were holding the device upside down and launched the game, it would force it to run right side up. I sent them am email with a description of what is happening and that the official sleeve (although I don't have one but felt it was with mentioning) is designed so the device is upside down with camera at bottom and charge port at top. Got a reply within the day and an update in the market within 3.
Sent from my Transformer TF101 using XDA Premium App
klau1 said:
Uncontrollable Orientation Behaviour
Click to expand...
Click to collapse
To much beer, not enough sex
There is an option to lock the orientation in the settings. So once it is upsied down you can lock the orientation and it shouldn't change.
I am not with my TF right now to test this though.
no, that doesn't work.
I don't recall this being a problem prior to the 3.1 update. Having to purposely ask each developer to change the orientation when none was necessary before is simply unacceptable.
Having bought something as simple as a case with it's multi-angle feature, one expects it to work out of the box.
As far as I knew, apps like Moboplayer always stayed in the default landscape orientation during video playback
I don't use Moboplayer much, but as far as I can recall, the Youtube app worked upside down in full screen before.
Can someone with 3.0 confirm?

[Q] Photo orientation problems

With the HD2 camera, I have the problem that the orientation of jpegs when viewed on a computer sometimes doesn't match the orientation of the phone/camera when the photo was taken.
This is weird, and I'm wondering if it's due to some malfunctioning gravity-sensor gimmick, trying to rotate images automatically and getting it totally wrong.
Of 50 images of a sponsored walk, all taken on the same settings, the first ten are the correct orientation (landscape) but the remaining forty are landscape and sideways-on, and thus need to be rotated with PC software to make them usable.
Even stranger, on the phone screen the bad images display in correct orientation (landscape) while the good ones display rotated, i.e. in portrait while they were actually shot landscape.
Yet, no settings were changed and no change of phone orientation (other than putting-away between shots) took place to cause this.
Everything about the camera interface, especially the orientation of the controls, suggests that you should shoot landscape, and that was what I was doing.
-Any ideas how nail-down this nasty, which otherwise is going to waste a huge amount of time and effort fixing broken images?
ROM 3.14.405.2 WWE

Yota 3+ does support landscape mode on EPD with YotaCamera!

Hey Yotafreaks! ;-)
Lately I was using YotaCamera on my Yota 3+ and I saw that the image on the EPD was rotating to landscape mode when I was moving my phone around. So I thought: What would happen if I choose 'Move app to second screen' on the front screen? Guess what? YotaCamera does support landscape mode! Looking inside the AndroidManifest.xml I can see <uses-permission name="android.permission.SET_ORIENTATION"/> is set, so propably the only setting you'll need for landscape mode on the EPD, but l'll have to test with a demo app.
Hi, I'm very interested in any way to watch videos in landscape mode on the eink screen of the Yotaphone 3+. If you have any idea whether or not it is feasible, please share =)
I wrote a reddit post about my attempts:
https://www.reddit.com/r/eink/comments/vz0bax
I remember that the implementation was successful, but I don't seem to understand the mechanism of the horizontal screen.

Categories

Resources