[android-beginners] Re: Screen orientation

2009-09-17 Thread kirti kaul

You can also set the parameter in the manifest file as

 activity

 android:screenOrientation=landscape

or portrait,which anyway is by default

On Sep 16, 9:02 pm, Neilz neilhorn...@googlemail.com wrote:
 Thanks, all sorted :-)

 On Sep 16, 1:06 pm, Mark Murphy mmur...@commonsware.com wrote:



  Neilz wrote:
   How do I test screen orientation on the emulator please? Can I tell it
   to switch orientation just like you would on the real device?

  Windows/Linux: Ctrl-F12
  Mac with numeric keypad: 5 on the numeric keypad

  --
  Mark Murphy (a Commons 
  Guy)http://commonsware.com|http://twitter.com/commonsguy

  _Android Programming Tutorials_ Version 1.0 In Print!- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Screen orientation

2009-09-17 Thread Konstantin Burov
On Wed, Sep 16, 2009 at 8:46 PM, Neilz neilhorn...@googlemail.com wrote:

 On a more complex but related matter, I have a Maps app that loses the
 map when I change the orientation. My overlays and locations remain
 visible, but the map detail has gone leaving a plain blue screen (like
 it's over the sea, but it's not!). Any ideas where to start looking
 for the problem?


Seems that you have to read about instance states for activities.
Possibly you should store map details at instance state (Bundle) and use
them to restore map state on mode change.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Screen orientation

2009-09-17 Thread Konstantin Burov
On Wed, Sep 16, 2009 at 8:46 PM, Neilz neilhorn...@googlemail.com wrote:


 Hi all.

 How do I test screen orientation on the emulator please? Can I tell it
 to switch orientation just like you would on the real device?


Try Ctrl+F11

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Screen orientation

2009-09-17 Thread Raphael

On Wed, Sep 16, 2009 at 8:21 PM, kirti kaul kirti.k...@wipro.com wrote:
 You can also set the parameter in the manifest file as
  activity
  android:screenOrientation=landscape
 or portrait,which anyway is by default

This will not help him test orientation changes.

R/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Screen orientation

2009-09-16 Thread Mark Murphy

Neilz wrote:
 How do I test screen orientation on the emulator please? Can I tell it
 to switch orientation just like you would on the real device?

Windows/Linux: Ctrl-F12
Mac with numeric keypad: 5 on the numeric keypad

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Screen orientation

2009-09-16 Thread Raphael

On Wed, Sep 16, 2009 at 5:06 AM, Mark Murphy mmur...@commonsware.com wrote:
 Windows/Linux: Ctrl-F12
 Mac with numeric keypad: 5 on the numeric keypad

and

$ ~/sdk/tools/emulator.exe -help-keys

  When running the emulator, use the following keypresses:

HOMEHome button
F2, PAGEUP  Menu (Soft-Left) button
Shift-F2, PAGEDOWN  Star (Soft-Right) button
ESCAPE  Back button
F3  Call/Dial button
F4  Hangup/EndCall button
F7  Power button
F5  Search button
KEYPAD_PLUS, Ctrl-F5Volume up button
KEYPAD_MINUS, Ctrl-F6   Volume down button
Ctrl-KEYPAD_5, Ctrl-F3  Camera button
KEYPAD_7, Ctrl-F11  switch to previous layout
KEYPAD_9, Ctrl-F12  switch to next layout
F8  toggle cell network on/off
F9  toggle code profiling
Alt-ENTER   toggle fullscreen mode
F6  toggle trackball mode
DELETE  show trackball
KEYPAD_5DPad center
KEYPAD_4DPad left
KEYPAD_6DPad right
KEYPAD_8DPad up
KEYPAD_2DPad down
KEYPAD_MULTIPLY increase onion alpha
KEYPAD_DIVIDE   decrease onion alpha

  note that NumLock must be deactivated for keypad keys to work

R/

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---