[android-developers] Re: App Widget and Orientation Changes

2009-09-14 Thread lilbyrdie
Hi Lee, Thanks for the information. As my widget has progressed, I now have full caching for JPEG files as I'm no longer reading from a local source and it's working fine. I'm also loading a Bitmap rather than setting a Uri to them. Perhaps there's some issue with using the resource ID in a Remo

[android-developers] Re: App Widget and Orientation Changes

2009-09-07 Thread Lee
> > On my G1 it's not possible. > > The standard G1's home screen rotates when you slide out the keyboard. Right, thanks. lilbyrdie, I can confirm that my caching solution also works when the screen is rotated. Lee --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: App Widget and Orientation Changes

2009-09-06 Thread Mark Murphy
Lee wrote: > On my G1 it's not possible. The standard G1's home screen rotates when you slide out the keyboard. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org --~--~-~--~~~---~-

[android-developers] Re: App Widget and Orientation Changes

2009-09-06 Thread Lee
> More curiously, though, is why the file size is being reported > incorrectly at boot time. I wonder if it's also being reported > incorrectly at other times when the system might be extra busy -- such > as during an orientation change? It's not -reported- incorrectly, it -is- incorrect (and sta

[android-developers] Re: App Widget and Orientation Changes

2009-09-06 Thread lilbyrdie
Thanks for the info, Lee. That's quite a work around. I'm also a bit surprised that using a file directly is more reliable than using a file from within the package. More curiously, though, is why the file size is being reported incorrectly at boot time. I wonder if it's also being reported inco

[android-developers] Re: App Widget and Orientation Changes

2009-09-05 Thread Lee
Hello, problem solved here, though not elegantly. In case it helps, I discovered that at boot time the size of the bitmap file was only 104 bytes (and therefore probably other times it disappears). However, at widget creation time the file is always perfect. So I cache the file at widget-creation

[android-developers] Re: App Widget and Orientation Changes

2009-09-05 Thread Lee
Just a quick update: instead of using the application icon returned from the PackageManager with views.setImageViewBitmap, I saved the bitmap to a file and set it with views.setImageURI( "/data/data/etc.../ z.png" ). That seems to have fixed my problem with icon disappearing after a few minutes.

[android-developers] Re: App Widget and Orientation Changes

2009-09-02 Thread Lee
On Sep 2, 3:19 pm, lilbyrdie wrote: > I'm using setImageViewResource. Curses, I was hoping the Bitmap call that was the common culprit. Guess I'll try storing the bitmap somewhere and using one of the other calls anyway, will report back. > Are you saying that for your widget your aren't confi

[android-developers] Re: App Widget and Orientation Changes

2009-09-02 Thread lilbyrdie
I'm using setImageViewResource. I find it odd that it persists when an Alarm is set, but not when an Alarm isn't set. Are you saying that for your widget your aren't configuring an update at all (e.g. just a static widget) via the widget configuration or manually? On Sep 1, 2:07 pm, Lee wrote

[android-developers] Re: App Widget and Orientation Changes

2009-09-02 Thread lilbyrdie
Also, I don't think this is related to the configuration issue reported (and confirmed) here: http://groups.google.com/group/android-developers/browse_thread/thread/869afdb312fc1e76/cb49f5e728430e75 But, if it is, that would be nice to know. On Sep 1, 2:07 pm, Lee wrote: > Hello, > > > After an

[android-developers] Re: App Widget and Orientation Changes

2009-09-01 Thread Lee
Hello, > After an orientation change when the home screen redraws, the > ImageView doesn't always draw. The rest of the RemoteView does draw > just as it was set during the most recent Update. I've just submitted a similar thread (hope it appears soon). As with you, my ImageView is disappear