Find a helpful tutorial at the following link

http://www.workingfromhere.com/blog/2009/03/30/orientation-sensor-tips-in-android/

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Jul 29, 7:18 am, treetop <[email protected]> wrote:
> Hi all,
>
> I have created a webpage and will browse it through HTC MAGIC default
> browser.
> For my webpage, it needs to use different layout under landscape/
> portrait.
> That is, not only I want to get current orientation but also want to
> be noticed of orientation changed event.
> After trying, I found that using "window.orientation" can get current
> orientation (0 for portrait and 90 for landscape).
> But I cannot find any information about creating event listener such
> as iPhone's "window.onorientationchange".
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to