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 wrote:
> 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 gets if
> I start in land
Great, thanks!
On Oct 10, 12:22 am, Mark Murphy wrote:
> Neilz wrote:
> > This must be simple, right?
>
> > On Oct 8, 11:34 pm, Neilz 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
>
Neilz wrote:
> This must be simple, right?
>
> On Oct 8, 11:34 pm, Neilz 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 getResources().getConfiguration().
--
Mark
This must be simple, right?
On Oct 8, 11:34 pm, Neilz 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 wrote:
>
> > Have a look at Activity.onCo
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 wrote:
> Have a look at Activity.onConfigurationChanged and
> Activity.getChangingConfigurations
>
> You will need t
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 wrote:
> Hi all. I notice when using the emulator that when the screen is
> flipped, I get a f
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 scr
Is it disabled for messaging now?
On Tue, Apr 28, 2009 at 10:17 PM, Dianne Hackborn wrote:
> 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 wrote:
>
>>
>> I
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 of
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
keyboard
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: "
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 wrote:
> Yes, for 1.5 we only support rotating to the left (the same as the rotation
> on the G1). And some of t
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 A
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 wrote:
>
> I can get my phone to rotate one way only- If I rotate the phone onto
> the left side, as though I were
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.
--~--~-
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 wrote:
> getResources().getConfiguration().orientation contains the current
> orientation, as defined by the constants
getResources().getConfiguration().orientation contains the current
orientation, as defined by the constants described in the java docs (NOT the
SCREEN_ORIENTATION_* contantgs).
On Mon, Apr 27, 2009 at 4:05 PM, jrgraf...@googlemail.com <
jrgraf...@googlemail.com> wrote:
>
> I cant seem to get curr
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:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDS
int orientation = getResources().getConfiguration().orientation
On Mar 25, 8:12 am, Dianne Hackborn wrote:
> Sorry I made a mistake, use getResources().getConfiguration().
>
>
>
>
>
> On Tue, Mar 24, 2009 at 10:43 PM, for android wrote:
> > Does that mean from the DisplayMetrics we need to che
Sorry I made a mistake, use getResources().getConfiguration().
On Tue, Mar 24, 2009 at 10:43 PM, for android 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 wrote:
>
>> That returns the orientatio
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 wrote:
> That returns the orientation mode your activity has requested. The actual
> current orientation is in getResources().getDisplayMetrics().
>
> On Tue, Mar
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 wrote:
> getRequestedOrientation()
>
>
> On Wed, Mar 25, 2009 at 9:34 AM, Suman wrote:
>
>>
>> Hi all...
getRequestedOrientation()
On Wed, Mar 25, 2009 at 9:34 AM, Suman 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 mode. Thanks in a
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 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 Goo
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
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,
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?
On Jan 22, 1:07 am, blindfold wrote:
> According to DDMS, my app leaks about 30 KB every time I quit and
> restart it. It may wel
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 r
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
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
> >> orient
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, th
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
>>> orientat
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
>> "mcc|mnc|locale|touch
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
> dra
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 change
> 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.
ht
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
Grou
Don't use Display.getOrientation(), it is the low-level screen
rotation constant.
On Sep 20, 12:54 pm, Huebi <[EMAIL PROTECTED]> wrote:
> There are several classes where int values for screen orientations are
> available (Configuration, ActivityInfo). Unfortunately, none matches
> the values retu
39 matches
Mail list logo