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
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
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
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
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
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
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
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
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
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.
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,
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
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
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:
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
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:
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
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
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
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
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
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
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
--
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
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
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,
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
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
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,
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.
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
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
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
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
34 matches
Mail list logo