Please DO NOT do this "trick" of forcing the screen into an orientation and then rotating your drawing. You WILL BREAK. You fill find yourself at some point on device that need to deal with this request to be in portrait to do special stuff to the screen, and completely break your app. (Imagine what something like GoogleTV might do with an app saying it can only run in portrait...)
On Tue, May 17, 2011 at 2:25 AM, Marcin Orlowski <[email protected]>wrote: > > On 17 May 2011 10:02, qureei <[email protected]> wrote: > >> Is there a way to show ads vertically in landscape mode in an Android >> game? Something like the following: >> >> >> http://stackoverflow.com/questions/5684097/how-to-show-admob-ads-vertical-in-landscape-mode-android >> >> I have tried all sorts of orientation settings, layouts etc, but nothing >> helps. And I haven't been able to find an answer to this anywhere. >> > > You have to do the trick -> keep your app in portrait mode (enforce it > even), but draw your game graphics to look correct for landscape (rotated). > Keeping screen orientation portrait will make all elements you cannot fully > control (like ads) to be shown in portrait orientation, but since your app > runs in horizontal view, user got device rotated "by hand" anyway so you get > what you aim for. You may want to run full screen to hide notification bar > as it would confusing to the user. > > Regards, > Marcin Orlowski > > *Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule > handy... > *Date In Tray* <http://bit.ly/dateintraypro> - current date at glance... > WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and > *Twitter<http://webnetmobile.com/twitter/> > * > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

