Re: [android-developers] AppWidget Update on Orientation Change

2009-12-30 Thread Jeffrey Blattman
I asked the same question some time back and the answer I received was that there is no way to detect if your widget is visible, or currently shown on the home screen. On Dec 29, 2009 7:29 PM, Ryan rgra...@gmail.com wrote: I am developing a photo frame widget, all works except on an orientation

[android-developers] AppWidget Update on Orientation Change

2009-12-29 Thread Ryan
I am developing a photo frame widget, all works except on an orientation change to landscape mode my appwidget doesn't display correctly as I have it set to portrait dimensions and it is too large for the display. I would like to run some code to resize the image so that everything displays

Re: [android-developers] AppWidget Update on Orientation Change

2009-12-29 Thread Guru
there is a thread whch explains how to do this.I could'nt google it easily. You need to specify a different id for each of the layout.that is for example: sample.xml LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical *android:id=landscape*