Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Android Live Wallpapers

3,961 views

Published on

Published in: Technology
  • Be the first to comment

Android Live Wallpapers

  1. 1. Android: Live Wallpapers Thursday, 18 February 2010
  2. 2. What are live wallpapers?  “Richer, animated, interactive backgrounds”  Provides another means for the user to interact with your app on their desktop  Similar to regular Android service, so the application becomes the desktop! Thursday, 18 February 2010
  3. 3. What do I need?  Android SDK > 2.1  Eclipse  ADT for Eclipse Thursday, 18 February 2010
  4. 4. Android API Levels  http://developer.android.com/guide/appendix/ api-levels.html Thursday, 18 February 2010
  5. 5. Setting up the Android manifest  Service permission of android.permission.BIND_WALLPAPER  API Level 7 for > 2.1 <uses-sdk android:minSdkVersion="7" />  Use feature tag <uses-feature android:name="android.software.live_wallpaper" /> Thursday, 18 February 2010
  6. 6. Example Android manifest Thursday, 18 February 2010
  7. 7. Wallpaper Service  Abstract class, implement and override onCreateEngine()  http://developer.android.com/reference/android/ service/wallpaper/WallpaperService.html Thursday, 18 February 2010
  8. 8. Life Cycle  onCreate()  onDestroy()  onVisibility()  onOffsetsChanged()  onSurface...() created, changed, destroyed  onTouchEvent() Thursday, 18 February 2010
  9. 9. Gotchas  Battery life!  CPU even 1ghz is not infinite  onVisibility(), when the wallpaper becomes invisible shut everything down  Multi touch? Thursday, 18 February 2010
  10. 10. Other options  Widgets  Apps Thursday, 18 February 2010
  11. 11. Demo Thursday, 18 February 2010

×