[android-developers] Re: screen orientation.

2011-06-09 Thread Android K
I meant Dialog box gets stuck and I can't remove the dialog box. On Thu, Jun 9, 2011 at 7:46 PM, Android K interconnectt...@gmail.comwrote: Hello, I am trying to control the orientation from which I start. It works fine if I hold the phone in portrait mode and start my app. Otherwise dialog

[android-developers] Re: Screen Orientation Change

2009-10-10 Thread Neilz
Great, thanks! On Oct 10, 12:22 am, Mark Murphy mmur...@commonsware.com wrote: Neilz wrote: This must be simple, right? On Oct 8, 11:34 pm, Neilz neilhorn...@googlemail.com wrote: Richard that's great, thanks. I'm almost there. One further question... How can I check what the

[android-developers] Re: Screen Orientation Change

2009-10-09 Thread Neilz
This must be simple, right? On Oct 8, 11:34 pm, Neilz neilhorn...@googlemail.com wrote: Richard that's great, thanks. I'm almost there. One further question... How can I check what the orientation of the screen is when the Activity loads? On Oct 8, 6:27 pm, RichardC

[android-developers] Re: Screen Orientation Change

2009-10-09 Thread Mark Murphy
Neilz wrote: This must be simple, right? On Oct 8, 11:34 pm, Neilz neilhorn...@googlemail.com wrote: Richard that's great, thanks. I'm almost there. One further question... How can I check what the orientation of the screen is when the Activity loads? Try

[android-developers] Re: Screen Orientation Change

2009-10-08 Thread RichardC
Have a look at Activity.onConfigurationChanged and Activity.getChangingConfigurations You will need to make changes to your manifest to use onConfigurationChanged -- RichardC On Oct 8, 6:03 pm, Neilz neilhorn...@googlemail.com wrote: Hi all. I notice when using the emulator that when the

[android-developers] Re: Screen Orientation Change

2009-10-08 Thread Neilz
Richard that's great, thanks. I'm almost there. One further question... How can I check what the orientation of the screen is when the Activity loads? On Oct 8, 6:27 pm, RichardC richard.crit...@googlemail.com wrote: Have a look at Activity.onConfigurationChanged and

[android-developers] Re: screen orientation not honoured when called from share ?

2009-09-04 Thread Dianne Hackborn
If your activity is not full-screen, it will inherit the orientation of whatever full-screen activity is behind it. Other than that, I don't really know enough about your exact situation to help. On Fri, Sep 4, 2009 at 12:39 PM, Jason Proctor jason.android.li...@gmail.com wrote: i set

[android-developers] Re: Screen Orientation.

2009-04-29 Thread jrgraf...@googlemail.com
Ah sorry my fault, I think I may have mis communicated my original issue. I wanted to know if there was a way of detecting the actual phone orientation rather than the screen orientation (I want my application to always stay in one orientation but still be able to detect the current orientation

[android-developers] Re: Screen Orientation.

2009-04-28 Thread jrgraf...@googlemail.com
The problem for me though is that the constants returned never change after I set a preferred Orientation no matter how I rotate the Phone :/ On Apr 28, 4:34 am, Dianne Hackborn hack...@android.com wrote: getResources().getConfiguration().orientation contains the current orientation, as

[android-developers] Re: Screen Orientation.

2009-04-28 Thread Troglodad
I can get my phone to rotate one way only- If I rotate the phone onto the left side, as though I were going to use the keyboard. Upside down and right side, nothing. Also, I notice that only some programs rotate- the main screen doesn't rotate, but the browser, messaging and notepad do.

[android-developers] Re: Screen Orientation.

2009-04-28 Thread Dianne Hackborn
Yes, for 1.5 we only support rotating to the left (the same as the rotation on the G1). And some of the built-in apps turn off rotation. On Tue, Apr 28, 2009 at 8:33 AM, Troglodad troglo...@gmail.com wrote: I can get my phone to rotate one way only- If I rotate the phone onto the left side,

[android-developers] Re: Screen Orientation.

2009-04-28 Thread Dianne Hackborn
I don't know what to say, they certainly do in all the cases I know of. You must want to put together short as possible sample code showing the problem happening; otherwise, with no way to repro (and no code to see exactly what you are doing), I can't help any more. On Tue, Apr 28, 2009 at 7:23

[android-developers] Re: Screen Orientation.

2009-04-28 Thread Troglodad
Well that stinks- I lay on my right side in bed... I was looking forward to checking emails and surfing the net without having to turn the phone! On Apr 28, 12:47 pm, Dianne Hackborn hack...@android.com wrote: Yes, for 1.5 we only support rotating to the left (the same as the rotation on the

[android-developers] Re: Screen Orientation.

2009-04-28 Thread jrgraf...@googlemail.com
Hey Dianne, Thanks for your reply, below is a sample of the code that I am using: @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); Log.i(TAG, WM getOrientation:

[android-developers] Re: Screen Orientation.

2009-04-28 Thread Dianne Hackborn
Um, if I am reading that right, it is exactly working as intended. With setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) you are saying to keep the screen in landscape, so the orientation shouldn't change. In fact you shouldn't see the screen actually rotating, just the

[android-developers] Re: Screen Orientation.

2009-04-27 Thread jrgraf...@googlemail.com
I cant seem to get current orientation via either: getResources().getConfiguration().orientation or (WindowManager) getSystemService(WINDOW_SERVICE).getDefaultDisplay ().getOrientation(); after setting up a preferred orientation via:

[android-developers] Re: Screen Orientation.

2009-03-26 Thread Amir Alagic
int orientation = getResources().getConfiguration().orientation On Mar 25, 8:12 am, Dianne Hackborn hack...@android.com wrote: Sorry I made a mistake, use getResources().getConfiguration(). On Tue, Mar 24, 2009 at 10:43 PM, for android forandr...@gmail.com wrote: Does that mean from

[android-developers] Re: Screen Orientation.

2009-03-25 Thread Dianne Hackborn
Sorry I made a mistake, use getResources().getConfiguration(). On Tue, Mar 24, 2009 at 10:43 PM, for android forandr...@gmail.com wrote: Does that mean from the DisplayMetrics we need to check from the height and width? On Wed, Mar 25, 2009 at 10:55 AM, Dianne Hackborn

[android-developers] Re: Screen Orientation.

2009-03-24 Thread for android
getRequestedOrientation() On Wed, Mar 25, 2009 at 9:34 AM, Suman ipeg.stud...@gmail.com wrote: Hi all... Thanks for replies. Can any one tell me by which method i can check the screen orientation? I mean i want to check whether it is land-scap mode or portrait

[android-developers] Re: Screen Orientation.

2009-03-24 Thread Dianne Hackborn
That returns the orientation mode your activity has requested. The actual current orientation is in getResources().getDisplayMetrics(). On Tue, Mar 24, 2009 at 10:01 PM, for android forandr...@gmail.com wrote: getRequestedOrientation() On Wed, Mar 25, 2009 at 9:34 AM, Suman

[android-developers] Re: Screen Orientation.

2009-03-24 Thread for android
Does that mean from the DisplayMetrics we need to check from the height and width? On Wed, Mar 25, 2009 at 10:55 AM, Dianne Hackborn hack...@android.comwrote: That returns the orientation mode your activity has requested. The actual current orientation is in

[android-developers] Re: Screen Orientation change performance Question

2009-03-10 Thread TjerkW
I do not want my view to rotate when the user opens the keyboard or rotates the device (i make a game). How do i disable this? In the emulator it always rotates by hiting CTRL-F11 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Screen Orientation change performance Question

2009-03-10 Thread Mark Murphy
TjerkW wrote: I do not want my view to rotate when the user opens the keyboard or rotates the device (i make a game). How do i disable this? In the emulator it always rotates by hiting CTRL-F11 Use android:screenOrientation=”portrait” as described here: http://androidguys.com/?p=2891 --

[android-developers] Re: Screen Orientation change performance Question

2009-01-23 Thread android_soft
I add the following attribute to an activity tag in the manifest to handle orientation changes. You may want to check other events you want to handle. android:configChanges=orientation --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: Screen Orientation change performance Question

2009-01-22 Thread blindfold
According to DDMS, my app leaks about 30 KB every time I quit and restart it. It may well be that this is caused by context references, but so far I have been unable to track it down. I think we desperately need some tool or a straightforward method to know exactly *what* is leaking *where* from

[android-developers] Re: Screen Orientation change performance Question

2009-01-22 Thread Mark Murphy
cindy wrote: My application also crashes somtimes when screen oritention change. I don't have big image at all. Do I need to some special code to handle screen orientation change? Possibly. By default, your activity is destroyed and recreated when the screen orientation changes. In theory,

[android-developers] Re: Screen Orientation change performance Question

2009-01-21 Thread Romain Guy
Hi, You can forward them to the next activity using Activity.onRetainNonConfigurationInstance(). You can also keep static references to the drawables if you remove their callbacks in onDestroy(). You can look at Home's source code for an example of the latter or at the source code of Photostream

[android-developers] Re: screen orientation question

2008-11-29 Thread Mark Murphy
joshbeck wrote: Hello all, I am trying to determine exactly what happens when the screen orientation changes. (What I mean is, what happens to the lifecycle of an app when the user slides the screen out.) Reason: I show a dialog in my app. If the user slides the screen out, the app

[android-developers] Re: Screen orientation woes

2008-11-29 Thread Dianne Hackborn
On Thu, Nov 27, 2008 at 3:29 PM, Stoyan Damov [EMAIL PROTECTED]wrote: On Fri, Nov 28, 2008 at 1:23 AM, Ralf [EMAIL PROTECTED] wrote: On Thu, Nov 27, 2008 at 11:39 AM, Stoyan Damov [EMAIL PROTECTED] wrote: I also don't want my activity to get restarted when the screen orientation changes,

[android-developers] Re: Screen orientation woes

2008-11-27 Thread Mark Murphy
On a side note, I read here[1] that I can set the orientation to sensor, which will report screen orientation changes as the device's physical orientation changes. Does this really work on a real device (I still don't have one) or that's reserved for a future release? Yes, it works.

[android-developers] Re: Screen orientation woes

2008-11-27 Thread Stoyan Damov
Aha, that's very good to know, thanks Mark! :) On Thu, Nov 27, 2008 at 9:42 PM, Mark Murphy [EMAIL PROTECTED] wrote: On a side note, I read here[1] that I can set the orientation to sensor, which will report screen orientation changes as the device's physical orientation changes. Does

[android-developers] Re: Screen orientation woes

2008-11-27 Thread Ralf
On Thu, Nov 27, 2008 at 11:39 AM, Stoyan Damov [EMAIL PROTECTED] wrote: Hi all, For my app the landscape orientation is useless, so I set my activity's Screen orientation attribute to portrait. Even when the screen orientation changes to landscape, whatever I draw is simply drawn flipped

[android-developers] Re: Screen orientation woes

2008-11-27 Thread Stoyan Damov
On Fri, Nov 28, 2008 at 1:23 AM, Ralf [EMAIL PROTECTED] wrote: On Thu, Nov 27, 2008 at 11:39 AM, Stoyan Damov [EMAIL PROTECTED] wrote: I also don't want my activity to get restarted when the screen orientation changes, so I set the Config changes attribute to

[android-developers] Re: Screen orientation from code / Permissions to use Surface.SetOrientation

2008-10-20 Thread Peter Bradshaw
I am foolish, I just needed to call Activity.setRequestedOrientation(int). http://code.google.com/android/reference/android/app/Activity.html#setRequestedOrientation(int) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google