Jeff, what did you do as a workaround? I think am going to always process 2 photos one for portrait size and one for landscape. But I feel like that is double the work needed. I should only have to process this when needed (ie on orientation change on the homescreen), this method will only slow down my app.
- Ryan On Dec 30, 11:57 am, Jeffrey Blattman <jeffrey.blatt...@gmail.com> wrote: > 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 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 correctly and it uses all the space that I > allot. > What is the correct way to do this? > I can think of 2 methods however both seem inefficient. The first > would be to register a broadcast reciever to take orientation changes, > however I don't want to redo my appwidget everytime the phone is > turned on its side as the majority of the time the homescreen is not > showing when the orientation is changed (ie other apps are used, and I > don't need my code running in the background). I only need it to run > when the home screen is shown. > The second would be to setup a service to manage my appwidget but that > also seems inefficient to be always running in the background. > > What is correct method to do this? > > Thanks, > > - Ryan > > -- > 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<android-developers%2Bunsubs > cr...@googlegroups.com> > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- 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