I want to reverse the orientation of my device.
I tried using the option ro.sf.hwrotation 180 but it rotates the display but doesn't rotate the touch.
I have found many leads through patches but all are for froyo or Gingerbread. I need it for JellyBean(4.1.2).
Please Help
http://developer.android.com/guide/topics/manifest/activity-element.html#screen
"reversePortrait" Portrait orientation in the opposite direction from normal portrait. Added in API level 9.
Related
I am developing a webAR using AR-js and A-frame, works perfectly with iPhone in landscape and portrait mode BUT in android only in landscape, when in portrait all augmented reality is not shown on the trigger image (Image Target ), appears shifted sideways and quite unsteadily. Is there any way to fix this?
I'm using a template based on the example at https://medium.com/swlh/ar-js-the-simplest-way-to-get-cross-browser-augmented-reality-on-the-web-10cbc721debc:
I also got the same issue some days back. It is because in aframe-ar doesn't have provision to correct the orientation shift(90 deg rotate). It might be working on the iPhone because of the auto-rotate. Try in android with auto-rotate(It may work).
Use console.log(event.details.intersectedE1) to know the exact
position of the trigger event.
I think this might help you out.
Caution: iPhone safari doesn't allow console.log().
I want to install an Android OS to an Odroid-XU4 device and connect it to a vertical touchscreen through HDMI. I want the content be displayed as portrait and fit the screen.
I installed 4.4.4, 6.0 (Cyanogenmod 13.0) and 7.1(Lineage 14.1) android images to the Odroid. By default, all of them display the screen as landscape , so I must configure the OS to get it displayed as portrait.
I first used AndroidUtility (a tool included in the OS image) and set HDMI orientation as portrait. The screen is displayed great (portrait and full screen) with the 4.4.4 OS image. Unfortunately, 4.4.4 OS doesn't work for me because the device has to be a COSU and this needs 6.0 or above OS version.
But using AndroidUtility , the screen is displayed like this in both 6.0 and 7.1 OSs:
After looking it over forums, blogs... I found out that the solution should be editting these lines in OS build.prop config file:
persist.demo.hdmirotation=portrait
ro.sf.hwrotation=270 (I have tried 90 too)
windowsmgr.support_rotation_270=true
Doing this, 7.1 OS version looks as portait and fills all the screen... but it's displayed upside down.
And 6.0 OS version looks not only turned, but also cropped:
How can I get it displayed as portrait and full-screen?
I had this same issue using LineageOS from here
(Source)
I ran the update to the most recent release from the ODROID Utility and it changed the "HDMI Landscape / HDMI Portrait 90+270" to a straight 0, 90, 180, 270. To change it required a reboot.
(Fetched)
All Android devices manages the screen sizes in the same way, so that has nothing to do with your android odroid, unless you have forced to be in landscape, and your monitor source is with a portrait orientation.
You just need to adjust your screen display monitor source orientation usually is using your screen menu, `
Menu->Display->(Horizontal or Vertical)
I am working on LG optimus 3D mobile platform and it seems to me I can experience the depth of three dimensions in landscape mode but the effect is completely lost while the phone is in portrait. does anyone have any suggeston how to make that work on portrait mode as well?
If you are using the p920, i'm afraid you (actually we cuz I have one too) are out of luck. 3d is landscape only.
Reference links :
http://3dvision-blog.com/5798-testing-the-3d-capabilities-of-the-lg-optimus-3d-p920-smartphone/
http://blog.gsmarena.com/htc-evo-3d-vs-lg-optimus-3d-taking-the-fight-to-another-dimension/
My app target 2.2 and later and want to support orientation only on portrait and reverse portrait. and the problem is i can't declare
android:screenOrientation="reversePortrait"
in manifest as it is only available from api level 9.
How is it possible to do this by supporting android 2.2 and later.
According to this post,
How to detect exact orientation of device in Froyo?
it is not possible to use portrait mode with reversed API 8.
I'm developing an Android game that uses the orientation sensor to get the rotation of the device (to roll a ball). I have two devices that I test apps on, one is a Samsung Infuse (phone) and the other is an Asus Eee Pad Transformer TF101 (tablet).
The app runs in landscape on both devices. The problem is that on the Eee Pad, the orientation is measured with the device sideways (landscape mode) while the Infuse measures in upright (portrait) no matter what I do. This makes is so the ball moves left when I tilt my Infuse left, but when I tilt the Eee Pad left, the ball moves up or down.
I can switch the orientation angles, so they move the ball the other way, but it only works for one or the other at a time. Any ideas how I could fix this?
Yes, I am using the deprecated TYPE_ORIENTATION, and not the getOrientation() method. I tried setting it up, but I never got it working correctly and it always spat out really weird values, so I stuck to the deprecated one. Would switching over fix this at all? If so, can someone link me to resources to implement this?
Google's docs make it clear that the sensor coordinate system is relative to the default orientation of the device. That description mentions the getRotation() and remapCoordinateSystem() calls you can use to adjust appropriately.