You can set  android:configChanges="orientation"  for your activity in
the AndroidManifest.xml file.
In your activity, override the   onConfigurationChanged method.

You can scale your image according to the orientation and set it
accordingly.

Balwinder Kaur
Open Source Development Center
·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 Aug 12, 9:23 pm, "sagar.indianic" <[email protected]> wrote:
> Hi,
>
> I just used setWallpaper() method. It is working fine for portrait
> mode. But when orientation
> changes image gets cropped. So how can I provide landscape version of
> the image?? Is there any way to provide landscape version of the
> wallpaper??
--~--~---------~--~----~------------~-------~--~----~
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