0
<ul>Intro to Android Home Screen Widgets </ul><ul>So Cal Code Camp Jan 29 2011 </ul><ul>Josh Dobbs </ul>
<ul>What's a widget? </ul><ul>Music Widgets Info Widgets </ul>
<ul>More Widgets </ul>
<ul>Why build a widget? </ul><ul><li>Give users information at a glance
Control apps that run in the background
Toggle settings(wifi, ringer, bluetooth, etc)
Give users quick access to core functionality </li></ul>
<ul>Need another reason? </ul><ul>Keep your apps in front of your users and they are less likely to forget about them </ul>
<ul>Design Guidelines </ul><ul>https://docs.google.com/document/d/1xjkCt2V84gQZCDRie1rA0cDKSsYMHinB7TytOuk_dFY/edit?hl=en#...
<ul>Design Guidelines </ul><ul><li>3 recommended sizes
Widget frames
Graphic tips </li></ul>
<ul>Design Guidelines </ul><ul>Android 1.6 (Donut) White Theme </ul><ul>Android 2.2 (Froyo) Dark theme   </ul>
<ul>Simple WebCam Viewer Widget </ul><ul>Android 1.6 (Donut) White Theme </ul><ul>Android 2.2 (Froyo) Dark theme   </ul>
<ul>four things needed to add a widget to your app </ul><ul><li>AppWidgetProvider(xml)
Upcoming SlideShare
Loading in...5
×

Home Screen Widgets

2,430

Published on

Here are the slides from the "Intro to Android Home Screen Widgets" session given at SoCalCodecamp on January 29th.

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

No Downloads
Views
Total Views
2,430
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
29
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Home Screen Widgets"

  1. 1. <ul>Intro to Android Home Screen Widgets </ul><ul>So Cal Code Camp Jan 29 2011 </ul><ul>Josh Dobbs </ul>
  2. 2. <ul>What's a widget? </ul><ul>Music Widgets Info Widgets </ul>
  3. 3. <ul>More Widgets </ul>
  4. 4. <ul>Why build a widget? </ul><ul><li>Give users information at a glance
  5. 5. Control apps that run in the background
  6. 6. Toggle settings(wifi, ringer, bluetooth, etc)
  7. 7. Give users quick access to core functionality </li></ul>
  8. 8. <ul>Need another reason? </ul><ul>Keep your apps in front of your users and they are less likely to forget about them </ul>
  9. 9. <ul>Design Guidelines </ul><ul>https://docs.google.com/document/d/1xjkCt2V84gQZCDRie1rA0cDKSsYMHinB7TytOuk_dFY/edit?hl=en# </ul>
  10. 10. <ul>Design Guidelines </ul><ul><li>3 recommended sizes
  11. 11. Widget frames
  12. 12. Graphic tips </li></ul>
  13. 13. <ul>Design Guidelines </ul><ul>Android 1.6 (Donut) White Theme </ul><ul>Android 2.2 (Froyo) Dark theme </ul>
  14. 14. <ul>Simple WebCam Viewer Widget </ul><ul>Android 1.6 (Donut) White Theme </ul><ul>Android 2.2 (Froyo) Dark theme </ul>
  15. 15. <ul>four things needed to add a widget to your app </ul><ul><li>AppWidgetProvider(xml)
  16. 16. WidgetLayout(xml)
  17. 17. AppWidgetProvider Implementation(java)
  18. 18. Update the manifest </li></ul><ul>Tells the Android OS that your app has a widget </ul>
  19. 19. <ul>dip? </ul><ul>!= </ul>
  20. 20. <ul>What's a dip </ul><ul>Dip = density independent pixel one dip is 1 pixel on a 160 dpi screen(ex screen size 240 x 320 1.5 x 2 inches is approx 1 dip = 1 pixel </ul>
  21. 21. <ul>AppWidgetProvider </ul><ul><li>Widgets are remote views(not applications)
  22. 22. How do widgets get updated? </li></ul><ul><ul><li>The app that supplies the UI for the widget is a broadcast receiver </li></ul></ul><ul><li>What does a widget receive? </li></ul><ul><ul><li>intents(pending intents) that are sent by sendBroadcast </li></ul></ul>
  23. 23. <ul>Four main intents </ul><ul><li>ACTION_APPWIDGET_UPDATE
  24. 24. ACTION_APPWIDGET_DELETED
  25. 25. ACTION_APPWIDGET_ENABLED
  26. 26. ACTION_APPWIDGET_DISABLED </li></ul>
  27. 27. <ul>Thank You </ul><ul>Josh Dobbs http://joshdobbs.com [email_address] </ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×