On Wednesday 17 June 2009 23:49:52 Siva wrote: > Hi, > > > I am new to android development. I do not do apps, but I am asked > to develop websites which will work Android phones. > > A very common request is to change the images in the site based on > orientation change. > Iphone exposes a javascript event called onorientationChange is there > any event similar to that in Android. > > The tried looking it up in most of the sites and I still have found > an answer to that. For the time being I am using setinterval method > which will check the document.width every 500 microseconds and I > update my layout accordingly. This approach works but I am not sure if > I am doing the right thing. Does anybody have a better solution.
"The Busy Coder's Guide to Android Development". page 46 "the orientation can be modified at runtime by invoking setOrientation() on the LinearLayout, supplying it either HORIZONTAL or VERTICAL." > > Thanks > Siva > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

