Android :: App Crashes When Switching To Landscape Mode / Why Is So?

Jun 17, 2009

My application crashes when I switch the Android Emulator to landscape mode. But when I start the application, everything works fine, until I switch to portrait mode again.

The error only occurs when I switch from one mode to another. When I debug my app while switching to the other mode everything works fine until my program counter jumps out of the onCreate() function.

this is an error message i picked out: java.lang.RuntimeException: Unable to start activity ComponentInfo {com.prog.drink/com.prog.drink.App}: java.lang.IllegalArgumentException: Wrong state class -- expecting View State

Any idea what I could have done wrong in my app?

Android :: App crashes when switching to landscape mode / Why is so?


Android : Switching To Landscape Mode In Emulator

Apr 11, 2010

This is probably a pretty easy to answer question, but I can't find the solution myself after a couple hours of searching the documentation and Google.I set the orientation of my Android app to landscape in the AndroidManifest.xml file: android:screenOrientation="landscape"

However, when I run the app in the simulator, it appears sideways and in portrait mode. How can I switch the emulator to landscape mode on a mac? It's running the 1.6 SDK.

View 3 Replies View Related

Android :: NullPointer Exception - Switching From Portrait To Landscape Mode

Feb 11, 2009

I have written a small example which displays the photos from the server. Its working fine when the device is in one of the mode (landscape of potrait). But if I switch to landscape to potrait or potrait to landscape while downloading the photos from the server, I am getting NullPointerException, showing with androidRunTimeException.

I am using LinearLayout -> ImageView
I am using threads to download the images.

View 4 Replies View Related

HTC 4G : Evo Not Switching Into Landscape Mode When Turned Onto Side

Jun 4, 2010

So when today the phone would switch into landscape mode when i would text, but now it no longer does. what is the deal!

View 6 Replies View Related

HTC Incredible :: Browser And Keyboard Not Switching To Landscape Mode

May 25, 2010

Had the phone about 30 hours or so, been happily learning the ins and outs of my first android. Was streaming Pandora for a couple hours while working, then went to type a text and the full size landscape qwerty wouldn't come up only that aweful portrait mode cramped keyboard that makes me feel like I am typing on a blackberry now the browser won't switch to landscape either which is 'incredibly' annoying. Teeter seems to work fine, on level 19 and also "Bubble" an app for Leveling which switches to landscape in either direction.

View 2 Replies View Related

Android :: Switching Between Landscape And Portrait Mode Makes Intent Lose Values / What's Cause?

Feb 25, 2009

I am using Intents to switch between activities in my Android app. I am putting data in the Intent for use in the next activity. When I switch the phone between landscape and portrait modes, the values passed from the intent are lost and I get a NullPointerException.

Can someone please tell me what could be wrong.

There's a lot of code to post it entirely. But if someone needs to look at specific parts of code, I can post it here.

Edit
I solved the issue of state not being saved. But another problem I faced is that none of the buttons on the screen work after the orientation has been changed. On button press, I get this warning in LogCat

02-25 23:07:49.190: WARN/WindowManager(58): No window to dispatch pointer action 0

View 2 Replies View Related

Android :: Switching Orientation Crashes App With Larger Image

Nov 6, 2010

I have an application that works fine with smaller images (say 1024x768 or so) but when you rotate the phone into a different orientation (say landscape to portrait) mode with a larger image on the screen, and then call ImageView.setImageUri() it goes into the BitmapFactory.class and never returns.So the app eventually times out. Never throws an exception, just never returns. Has anyone else seen this? Sounds like a bug in the Android code more than something I am doing since it works fine for smaller images.

View 3 Replies View Related

Android :: Contacts App Crashes When Switching Between Dialer To Call Log

Dec 17, 2009

I've altered the contact app so that in Dialer the soft keypad always stays and it hides when other tab activity resumes, We've given different look for the contacts app, but when using the same, a crash occurs when we rapidly change from dialer to call log. And the App crashes without the standard crash dialog.

View 1 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

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 :: Switching To Landscape Orientation Is Slow

Sep 4, 2010

This is getting called in on Create(), how can I speed up orientation switching? private void setupChartView(int position){
Quote my Quote = quotes Adapter.get Item(position);
this.symbol = my Quote.get Symbol();
String url = "http://chart.finance.yahoo.com/z?s=" + symbol + "&t=1d&q=l&l=on&z=l&p=s&a=v&p=s&Lang=en-US®ion=US";
if(chartImageView != null)
imageDownloader.download(url, chartImageView);
if(chartImageViewLandscape != null)
imageDownloader.download(url, chartImageViewLandscape);}

View 1 Replies View Related

General :: Video Recording Tin Portrait Mode Records In Rotated Landscape Mode?

Mar 26, 2012

there are those of us, who due to whatever reason (helmet cams, preference for posture, etc) want to record videos in portrait mode.

What happens (on my sgs2) is that the video records just fine in whatever resolution I pick... but it records it 90 degrees rotated to the right.

The solution that is usually offered is that "you can rotate it after!" yes... but then you have to CROP part of the image and lower the resolution. 1920 x 1080 recordings end up having to be cropped so that half of the view is cut out , or even more if you are maintaining a real aspect ratio.

The questions about "why not just hold it sideways", are just as pointless as the statement by steve jobs telling iphone4 users that they were holding their phones wrong.

is this something that can be remedied ? or has google decided that people should only record videos when their phones are in landscape mode?

i understand that we cant see landscape resolution in portrait mode; but can't we just have a viewport into the camera, but record in properly oriented landscape mode? so that playback on a computer will show the full resolution, even though we will only see part of it on the phone..

View 1 Replies View Related

General :: Dialer In Kitkat Always In Landscape Mode When Call Is Ongoing - How To Set It In Portrait Mode

Dec 1, 2013

dialer in kitkat is always in landscape mode when call is ongoing....how can we set it in portrait mode

View 1 Replies View Related

HTC EVO 4G : Anyone Experience Bad Lag With Keyboard Switching To Landscape?

Jun 6, 2010

I'm not sure if it's normal, but for the built-in messaging app, it takes literally about 9-12 seconds to switch to landscape keyboard when tilted.

Similarly, with eBuddy, the messaging app, it tends to take 5-7 seconds. Is it just me or is that really slow? I don't expect it to be instantaneous, but taking more than 3 seconds or so seems a bit much. Anyone else having issues?

View 3 Replies View Related

HTC Droid Eris :: Message App Crashes When Opening In Landscape

Jun 19, 2010

I'm running Droid Eris on leaked 2.1v3 Over the last month or so I've noticed than when I open a text message while holding the phone in landscape the app crashes and has to be forced to close. Also sometimes I notices that the keyboard is a little laggy and the text doesn't show up on the screen until I minimize the keyboard.Has anyone else had these problems or know of a fix?Also on a side note how to I save pictures sent to me in mms to my media card?

View 5 Replies View Related

Motorola CLIQ :: Screen Swings All Crazy When Switching To Landscape / How To Fix

Jan 8, 2010

I installed spare parts and my screen goes in circles now when it switches to landscape it just swings untill it stops before it will completly open the page. So I un-installed the app amd still the issue is there . I have tried everything I can think of other than a master reset.

View 1 Replies View Related

Android :: How To Avoid Camera Landscape Mode?

Nov 24, 2010

I am New To android, my problem is when iam capturing image programetically the camera is opening in landscape mode..Than How to Avoid it?

View 1 Replies View Related

Android :: How To Solve Landscape Mode Issue?

Feb 10, 2009

I have a small application. It has some user inputs (like name, phone number, country, connection type etc, I used editText for the user to enter). Its working fine on the emulator. When I installed the same app on real device, firstly it shows the whole input screen. But when I tried to give input, (changing into landscape mode) half of the screen is not visibiling. I want to show the whole screen, I dont know how to do?

View 7 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 :: Landscape Mode When Boot On Device

Mar 24, 2009

There are some question bother me.

How to fix landscape mode when boot on device?

I had change manifest.xml ->

CODE:...........

But that only change sensorDemo screen. That doesn't I want. I want to set landscape mode when boot on device and show main screen. what methods does I try it?

View 3 Replies View Related

Android :: Softkeyboard Visible In Landscape Mode?

Jan 15, 2010

I wanted a way to find out whether a softkeyboard is visible at any given time.

If I set the windowSoftInputMode property to adjustResize, I receive resize events in the portrait mode (onSizeChanged gets called). I use these events to find out whether the softkeyboard is visible or not. But I get no resize events in the landscape mode (Android SDK 2.0). Do I need to set some property explicitly to get these events in the landscape mode.

Also when the application switches between landscape and portrait, the application gets resize events. So to find out whether the keyboard is actually visible, I would need to differentiate between the 2 resize events.

So in short, is there a cleaner way (other than resize events) to find out whether the soft keyboard is visible? And if resize is the only way, how can I turn it on for landscape mode?

View 2 Replies View Related

Android :: Virtual Keypad In Landscape Mode?

Dec 22, 2009

I am working currently on an application which is in landscape mode by default. I want the virtual kepad to be poped up whenever I click on the edit box. Please, help me for the same.

View 3 Replies View Related

General :: Switching Between Network Mode

May 20, 2014

I have a samsung galaxy music duos . It had come with 4.0.4 - in network mode there were 3 options - GSM ONLY.CDMA ONLY & AUTO MODE.Now after updating to jelly bean it has got changed to At some places where 3g is available it still uses 2g and sometimes keeps switching between 2g and 3g . Is there something i can do to use 3G ONLY ie, CDMA ONLY network? Can apps like tasker do the job?

View 6 Replies View Related

Android :: How To Show Soft Keyboard In Landscape Mode?

May 5, 2009

I tried a lot of ways with no luck.

View 2 Replies View Related

Android :: Put TextView In Same Position In Landscape / Portrait Mode

Oct 1, 2009

I am facing a problem when i put a text view on screen in landscape mode it position is fine but when i switch to portrait mode it position is remain fix it not change according to screen resolution.

View 2 Replies View Related

Android :: Disable Landscape Mode For Some Of Views In Droid App?

Feb 24, 2009

How can I disable landscape mode for some of the views in my Android app?

View 3 Replies View Related

Android :: Code To Change LandScape To Potrait Mode?

May 15, 2010

I have a an application which is having some UI items like Buttons Radio Buttons etc. I want to change through code from landscape to portrait mode. I did by calling the method setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); But my UI items totally disturbed some of the i am unable to see.

View 3 Replies View Related

Android :: How To Get TableLayout To Fill Parent In Landscape Mode

Dec 27, 2009

I am using a TableLayout in my application. It contains four TableRows each containing four ImageViews. The behavior I want is to scale the layout to fit the shortest dimension. It works fine in portrait mode but fails miserably in landscape mode.

From the documentation it looks like this is because the TableRow layout_height is always set to WRAP_CONTENT. While I can set the dimensions of the individual Views, the TableLayout won't render at all if I set the View layout_height to FILL_PARENT.

I feel like there is something simple I am missing. Is there a way to get the TableLayout with TableRows to scale to fit the height in landscape mode?

XML Layout:

CODE:...................

Java:

CODE:......................

View 2 Replies View Related

Android : Want Vertical Tab To Realign Vertically In Landscape Mode

Jul 25, 2009

I tried to search discussions and couldn't find definite answer or example in old thread. I want my tabs to realign vertically in the landscape mode. Currently I have to use buttons which is sorta silly when there is a tab control..

View 2 Replies View Related

Android : Trying To Make Nice Layouts For Landscape Mode?

Nov 10, 2010

My app has a tabhost with four tabs, and now I'm trying to make nice layouts for landscape mode. In order to make use of additional horizontal space I want to put TabWidget at the right side of the screen, and of cource all tabs must be one under another (like in a column).
But when switching to landscape mode all tabs get aligned in a row, it looks quite ugly. How to fix that?
Screenshot is here: http://imgur.com/gPS1R.png

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout

android:layout_width="fill_parent"
android:layout_height="fill_parent">

<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1">

<include layout="@layout/filter_wizard"/>
<include layout="@layout/filter_wizard"/>
<include layout="@layout/filter_wizard"/>
<include layout="@layout/filter_wizard"/>

</FrameLayout>

<TabWidget
android:background="#75ffffff"
android:id="@android:id/tabs"
android:layout_width="wrap_content" android:orientation="vertical"
</LinearLayout>
</TabHost>

View 1 Replies View Related







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