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
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
12 matches
Mail list logo