Rich, thanks for your notification. I was not aware that vertical
scrolling already existed, and it does affect what I am doing.

Dianne, thanks for the explanations. I definitely don't want
complicated or fragile code. The getResources().getDisplayMetrics()
works great, and WallpaprManager.getDesiredMinimumWidth(). Thanks for
pointing me toward these.  A few things I still don't understand:

>> In WallpaperService.onCreate() I get wallpaper width from
>>    WallpaperManager.getDrawable() and getBitmap() and getWidth(),

>You have at this point loaded a Drawable for the current static wallpaper...
> but there is no up-to-date static wallpaper, because you have just replaced
>it with your own wallpaper.  Your wallpaper should absolutely positively not
>be trying to load the current static wallpaper here.  There are no
>guarantees that this is up-to-date or even valid.

The point at which I do this is early on in
WallpaperService.onCreate(), before I instantiate
WallpaperManager.Engine and well before my WallpaperManager.Engine's
onSurfaceCreated(SurfaceHolder hldr) callback with
    WPcan = hldr.lockCanvas();
        WPcan.drawBitmap(...);

Isn't it drawBitmap() that replaces the old with my new? And, I get
the old Drawable early on by instantiating a WallpaperManager which,
according to documentation will, "Retrieve a WallpaperManager
associated with the given Context." On the emulators I've always
received what I expect. When is this Drawable not up-to-date or not
valid? Am I missing some emulator state I should be testing?

>The current launcher can set the desired
>wallpaper width to whatever it wants.

I'm unclear about the launcher: Does it only handle the "application
drawer", the wallpaper and icons on the home screen(s), or both? Can
I, as an application programmer, replace the launcher with my own, or
is this something phone vendors do? Phrased another way, normally who
owns the placement and scrolling of shortcuts, widgets, and folders
across the device screen--Android, the phone distributor, or someone
else?

>> (c) upon exit from preview mode, some way to set which home screen (of
>> icons and widgets) will show next.

>No that is up to the application sitting on top of the home screen, and can
>change as you move between such apps.

I find no way in the emulators to invoke "Living wallpapers" and
therefore get into my preview mode except from a home screen.
Therefore exit from my app's preview mode always returns to a home
screen. Maybe I'm missing something.

Thanks again for the help.
Hal Harrison

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to