Live Wallpaper - How to detect home screen sliding?

by Robert Green » Fri, 15 Jan 2010 12:30:15 GMT


Sponsored Links
 I've checked the WallpaperService.Engine class and don't see
anything.  What's the best practice for detecting home screen
sliding?

Thanks



Live Wallpaper - How to detect home screen sliding?

by Romain Guy » Fri, 15 Jan 2010 12:47:04 GMT


 onOffsetChanged()

 http://d.android.com/reference/android/service/wallpaper/WallpaperService.Engine.html #onOffsetsChanged(float,%20float,%20float,%20float,%20int,%20int)



>


Sponsored Links


Live Wallpaper - How to detect home screen sliding?

by Robert Green » Fri, 15 Jan 2010 12:56:16 GMT


 Aha, I don't know how I missed that.  Ok, that makes life easy.  I'll
just start with a view of predefined width and use the xOffset to know
how far to pan in one direction or another.

Thanks Romain!




> >



Other Threads

1. avoid splash screen if a service is running...

when my activity gets started, i want to check for a service, if it
exists, I want to show screen 2 and bind to the service, if the
service is not running, I want to show screen 1 and start the service.

i could not find an easy way to know whether the service is running or
not...

tia.
--~--~---------~--~----~------------~-------~--~----~

2. change framework assets with alternate home screen

No, it cannot do this.






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~

3. change framework assets with alternate home screen

4. building generic donut

5. Stepping thru android base code

6. android-developers - 26 new messages in 16 topics - digest

7. Is it possible to use the accelerometer in a background service?