Re: [android-developers] Landscape/Portrait and more... an advanced question

2012-06-14 Thread KracyAndrodian Developer
By doing this, Activity will not destroy and recreate it.

On Wed, Jun 13, 2012 at 2:48 PM, Mark Cz ome...@gmail.com wrote:

 Hi all,
 I am writing an SDK that shows a EULA dialog in portrait mode upon
 starting the user application.

 My EULA is an activity with the following manifest

 activity
 android:name=.EulaActivity
 android:screenOrientation=**portrait
 android:theme=*@android:style/Theme.Translucent*
 android:configChanges=**keyboard|keyboardHidden|**orientation
 /


 Suppose that the top activity is in landscape mode, and wants to display
 my EULA activity.
 My EULA is indeed in portrait mode, but it changes the mode of the
 activity below (restarting it, or calling onConfigurationChange, depends on
 the manifest).
 On the other hand if my EULA doesn't have *Translucent *style, everything
 is OK.

 Is it possible to show a *Translucent * activity is in portrait while the
 activity below is in landscape ?

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

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

Re: [android-developers] Landscape/Portrait and more... an advanced question

2012-06-13 Thread Mark Murphy
On Wed, Jun 13, 2012 at 5:18 AM, Mark Cz ome...@gmail.com wrote:
 My EULA is an activity with the following manifest

 activity
             android:name=.EulaActivity
             android:screenOrientation=portrait
             android:theme=@android:style/Theme.Translucent
             android:configChanges=keyboard|keyboardHidden|orientation /

Please don't use android:screenOrientation=portrait, particularly
for something as trivial as a EULA. For example, I can think of no
reason why Google TV users -- or anyone else with a landscape-only
device -- should need to incur neck pain to read your EULA. Even for a
regular device, I'd be annoyed at somebody forcing me to turn my
device just to read their legal agreement.

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

Android Training in NYC: http://marakana.com/training/android/

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