Android Live Wallpapers

3,849 views
3,745 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,849
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

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

×