not sure how much help this is, but i'm using it on a canvas i
have....

                                Integer width = canvas.getWidth();
                                Integer height = canvas.getHeight();

                                // Check Orientation so we know which grid to 
use
                                if(width>height)
                                {
                                        // Landscape mode


                                } else {
                                        // Portrait mode
                                }


On Jun 3, 1:43 am, aby <orz0...@gmail.com> wrote:
> Hi,
> I need to set different content view after rotating device screen. Is
> there any method to detect the direction of current screen is vertical
> or horizontal?Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to