Android :: Force Screen To Switch Between Landscape / Portrait

Feb 1, 2009

Is there a way to pro grammatically force the screen to change between landscape and portrait mode? I want to allow the user to choose a menu item to rotate the screen, instead of relying on pulling out the keyboard. I am looking for something like activity.change Screen Orientation, but couldn't find such a thing in the API docs.

Android :: Force screen to switch between landscape / portrait


Android :: Automatically Switch Keyboard If Portrait Vs Landscape

Aug 20, 2010

I like to use Swype in portrait mode but the Android keyboard in landscape mode. Is there an app to auto-switch the keyboard based on the orientation of the phone?

View 13 Replies View Related

Android :: Switch To Landscape Then Back Portrait - Inflate Exception

Jul 23, 2010

I've met a very strange issue that my app will crash if user first switch to landscape, then back to portrait. I found that Activity.setContentView() will throw an inflate exception. It said:
android.view.InflateException: Binary XML file line #29: Error inflating class <unknown>

This crash will happens on Android 1.6/2.1/2.1-update1, but doesn't happen in 2.2 Froyo. In Froyo, everything works fine. If the XML I used is invalid, it should happens every time when I try to inflate. But why it's okay on the first time of running and switching to landscape? This also only happens on some devices. For example, there two HTC G1 with same software installed on it and has the same configuration, one has this issue and the other one works fine.

View 7 Replies View Related

HTC EVO 4G :: How Sensitive Phone Is To Switch From Portrait To Landscape?

Sep 3, 2010

I have been trying to find some information if there is any way to adjust how sensitive the phone is to switch from portrait to landscape.I hate the fact that I have to shake my phone to get it to switch Other phones I have have used never were this stubborn before.

View 19 Replies View Related

HTC EVO 4G : CM6 RC2 Crashapaloosa - When Switch From Portrait To Landscape View

Jul 30, 2010

Flashed the CM6 RC1 Rom and have been running smooth as glass. Suddenly, it is crashapaloosa on me. I am betting it is the hinky Flash 10.1 that is doing it. It happens mostly when I switch from portrait to landscape view.

Also getting odd messages like "Unable to Log In". Not sure what it is logging into but apparently it can't. Anyone else having issues? Will try dumping Flash 10.1, also will try shutting down SetCPU and see if those don't help. Ah bugs ;-)

View 5 Replies View Related

HTC Aria : Landscape Keyboard Force Close Pops Up In Portrait Mode

Jul 21, 2010

So my Aria is less than 24 hours old and twice now when texting in landscape mode a Force Close pops up and I can only type in portrait mode. I am using HTC keyboard and have not loaded any other keyboard. is this happening to anyone else?

View 20 Replies View Related

Android :: How To Rotate Whole System Screen From Landscape To Portrait ?

Aug 25, 2009

Does anybody know how to rotate whole system screen from landscape to portrait?The platform is not G1 or any other phones, it's just a normal ARM platform.Not only one application but whole system.

View 1 Replies View Related

Android : How To Rotate Screen To Landscape (or Portrait) By Programmable Way?

Mar 28, 2010

How to rotate the screen to landscape (or portrait) by programmable way? I am trying to make it independent when user rotates the screen.

View 2 Replies View Related

Android :: Change Screen Orientation From Portrait To Landscape?

Nov 1, 2010

I want to change the screen orientation from portrait to Landscape and vice-versa when the user shakes his/her android mobile phone, can any one help how to achieve this, because I do not know what event is fired, at the time his/her shaking thier android mobile phone. For Instance When the users touch the button in UI, touch event is fired, similarly when the user shakes his android mobile phone, what is fired.

View 3 Replies View Related

Android :: Screen Orientation Landscape Back To Portrait Not Working

Mar 20, 2010

I've racked my brain for hours over this issue. I have created a main.xml and designed one for the res/layout-land (landscape) format and another one for portrait in res/layout. When I rotate the emulator (ctrl-F11), my app rotates properly to landscape using the correct main.xml, but a subsequent rotation back to portrait just keeps the landscape mail.xml. This was done in a 2.0 AVD.. Out of desperation I downloaded the new Sample Code for Multiple Resolutions and had to create a new 2.1 AVD, to my surprise rotation with this app works correctly as expected. So I then decided to try my app on the 2.1 AVD and it works perfectly. So, is this a Bug in a 2.0 AVD or is there something special I need to be doing for < 2.1 SDK versions?

View 4 Replies View Related

Android :: Change Emulator Screen Orientation To Landscape / Portrait?

Jan 2, 2010

How do we change emulator screen orientation to landscape or portrait?

View 2 Replies View Related

Android : Way To Track Screen In Landscape / Portrait View In Droid?

Feb 23, 2010

I worked in a tabactivity, I set the gravity for tabs as bottom. If I change the screen from portrait to landscape, I can't see the tabs. How can I do it?

View 1 Replies View Related

Android :: Not Getting Full Screen Display / Code To Get It In Portrait - Landscape Mode?

Sep 8, 2010

I am using VideoView component for streaming video in Android , but I am not getting the full screen display.

Kindly provide the code to display full screen in portrait/landscape mode.

View 2 Replies View Related

Android :: Droid Device Is Portrait / Landscape Screen For Normal Usage?

Sep 9, 2010

Is there anyway to find out if a device is portrait or landscape by default? In that I mean how you normally use the device.

Most phones have a portrait screen for normal usage but is there some flag for finding that out?

View 1 Replies View Related

Motorola Droid X :: APP - ROOT - Keyboard - Keyboard Manager - Dual Keyboard - Portrait - Landscape Switch

Nov 10, 2010

I tried it and it works so far.

Dev = ne0fhyk from XDA.

From the XDA forum: Link to app page = [APP][ROOT/Keyboard] Keyboard Manager - Dual keyboard: Portrait/landscape switch - xda-developers

Verbage:

Keyboard Manager allows you to customize what keyboard (input method) appear on input based on your phone orientation.
It displays the keyboards you have enabled on your android device, and let you select one per orientation (landscape/portrait).
As your phone switch orientation, the app automatically switch the keyboard.

Requirements:
- Rooted android device (app was tested on Samsung captivate 2.1)
- Root Explorer app, or similar app that allows you to edit the permissions of a file.

To install:
1- Download the app (KeyboardManager.apk) on your device sdcard.
2- Using Root Explorer, move the apk file to /system/app
3- Using Root Explorer, edit the file permissions like below:
-- User: 'Read/Write' checked
--Group: 'Read' checked
--Others: 'Read' checked
4- Exit Root Explorer

The app should be visible in your launcher as 'Keyboard Manager'

Update:
- Added option to disable notification icon
-' start on boot' feature is disabled because it's not yet complete and tested... Sorry for the confusion

Bugs:
-On certain applications (i.e: Messaging on Samsung Captivate), the input window occasionally freeze on orientation switch. Exiting the app, and resuming should fix it.

The app is still in development.

View 11 Replies View Related

Android :: Force Portrait Screen

Aug 7, 2009

I developed an application and when I flip the phone in landscape mode the application went in landscape too. How can I make the application stay in portrait mode no matter the phone orientation.

View 5 Replies View Related

HTC Incredible :: Lock Screen Orientation In Portrait / Landscape?

May 5, 2010

Is there a screen orientation lock feature? I haven't seen it mentioned. In fact a search only turned up mention of it as a hardware button on the iPad. This would be great for using it while lying down, reclining, in the car.

View 2 Replies View Related

Android :: Way To Force Screen Orientation To Landscape Right As Of Froyo?

Sep 24, 2010

We currently use Activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_x) to set (and 'freeze') the orientation of our app. Froyo now supports two landscape modes tho and we'd like to allow our users to orient the app to 'landscape right' ... ie, the orientation obtained by turning a device naturally oriented to Portrait 90 degrees clock wise.

View 3 Replies View Related

HTC Incredible :: Unlock Screen Does Not Switch To Landscape / Should It Flip To It?

May 1, 2010

I have ActiveSync Exchange and my Inc locks every 20 mins, but when I go to unlock and try flip the phone and switch the view to landscape it stays portrait. No a big deal but should it flip to Landscape?

View 2 Replies View Related

Android :: AVD Rotate Portrait / Landscape?

Oct 12, 2010

I know if you change a android phone from portrait to landscape sometimes the app relays its self out on the screen.. so how do I simulate rotating a phone with the AVD? On the Blackberry emulators there's a button in the menu to turn the phone, but I can't find it or any option on the Android ones?

View 1 Replies View Related

Android :: Switching From Landscape To Portrait Orientation

Apr 3, 2009

I want to display a table which would fit better in portrait view than in the landscape view. How do i instruct the emulator to change the orientation?

View 4 Replies View Related

Android :: Widget Different Portrait And Landscape Orientation

Jul 8, 2010

How did you support both landscape and portrait for appwidget? the layout of appwidget will never change when orientate the device from landscape to portrait. by the way, would you please tell me which device support both landscape and portrait for appwidget?

View 1 Replies View Related

Android :: Retrieving Data From Portrait To Landscape

Feb 18, 2010

For changing from portrait to landscape mode i have done some changes in manifest.xml and included some code in test.java file

In manifest.xml i have included <activity_name android:configChanges="orientation"/>

i entered some data in portrait mode. but when i rotate my mobile from portrait to landscape the control goes to onConfigurationChanged() method.

public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); setContentView(R.layout.screen1_landscape);
}

View 3 Replies View Related

Android :: Portrait / Landscape Mode Supporting

Mar 31, 2009

When we try to implement orientation in AP layer, we can set "android:screenOrientation" parameter in AndroidManifest.xml file or call "setRequestOrientation()" method of Activity class. But if I want to porting android in new HW device, how can I do? Do I need to modify the graphic driver, or just add configuration in program. (Actually I do some experiments but my AP cannot rotate) Besides, can every experts tell me when I set the "android:screenOrientation" parameter, which process will read this configuration, pass to where and which process will do the rotation?

View 2 Replies View Related

Android :: Portrait Vs Landscape Orientation Using Sensor

Dec 18, 2009

I'm trying to detect landscape vs portrait orientation with the following:

public void onSensorChanged(SensorEvent event) { float pitch = event.values[2];
if (pitch <= 45 && pitch >= -45) { // portrait }
else if (pitch < -45) { // landscape }
else if (pitch > 45) { // landscape } }

Anyone have something more robust? It works pretty well, except if the phone is in a landscape orientation and the user starts to 'flatten' it out, starts thinking it's in the portrait orientation again.

View 7 Replies View Related

Android :: Specify Different Layouts For Portrait And Landscape Orientations?

Jan 23, 2010

I've seen references to being able to specify two separate layout xml files for an activity, one for Portrait and one for Landscape. I've not been to find any information on how to do that though. How do I specify for each activity which xml file is it's portrait layout and which is the Landscape layout? Is it also possible to specify different layouts for different screen sizes? If so, how is this done?

View 2 Replies View Related

Android :: Add Rotation Effect When Portrait To Landscape?

Jun 17, 2010

How to add rotation effect when change mode portrait to landscape? I want to make it smooth.

View 2 Replies View Related

Android :: Crashes When Device In Portrait And App Landscape

Sep 26, 2010

I made an app thats use the camera. The first problem i get was that i can't use portrait preview without the rotation 90º image. I used the solution (landscape for all), but now, only in the real device, when i start the app and i have the device in portrait mode it crashes (need to force close) and only after reboot the phone its possible to connect to camera, even in the camera app.

View 2 Replies View Related

HTC EVO 4G :: Down Landscape And Won't Go Portrait

Aug 3, 2010

Since the FROYO update some stuff is only in Lanscape and it's what I would call upside down. Is there a fix for that? Like Gmail and internet and some others I noticed. Other than that it's smokin fast and everything is working fine for me.

View 16 Replies View Related

Android :: Startup Emulator With Landscape Orientation Instead Of Portrait

Jun 19, 2010

As u know, since android 1.6, there are not dirs on dirs like HVGA-L. Instead, there is only one dir like HVGA. That is, HVGA-P and HVGA-L are merged into one dir, HVGA. So, only HVGA can be selected and by default the emulator is started with portrait mode. Though I can press CTRL+F11/F12 to switch it to landscape mode, I do not like it. What I want is to start the emulator with default mode of landscape. Would anyone know how to do it?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved