Samssonart
Samssonart

Reputation: 3593

Can I flip android app only on HDMI screen?

I have an android app that has to be restricted to portrait mode, and now I have to output it to a screen via HDMI cable. The problem is that the signal matches the screen's height but the width is letterboxed. The screen I'm using can't flip to vertical, so I have to do it by code. I basically need to display the HDMI output flipped. I know this can be done on the iPad, but I don't know how to do it on android, or whether it can even be done. So any ideas?

Upvotes: 0

Views: 1302

Answers (3)

Felipe Conde
Felipe Conde

Reputation: 2044

You can create a folder named tvdpi and put your layouts on it

Upvotes: 0

Samssonart
Samssonart

Reputation: 3593

Short anwer, no it can't be done, indeed on a Motorola device I would have had more of a choice. But anyway, if anyone's interested to know, what I did was create a landscape app and compose the UI so it appeared portrait, user input was a drag, but overall it worked.

Upvotes: 0

MrZander
MrZander

Reputation: 3090

You may want to look at this link

More specifically: EXTDISP_STATUS_CONNECTION

If that doesn't work, you could always just put a menu option to switch resolutions.

Upvotes: 2

Related Questions