3

Do you know any books, articles, examples, screencasts that document how to develop an home screen widget on Android?

I just found these links:

I would like to develop a tiny home screen ticker and I'm searching for the proper way to code it.

0

2 Answers 2

7

There are plenty of examples if you google for "android widget tutorial". Two I found useful were:

  1. HelloWidget from the TheSmilingBlog. Basic tutorial to display an empty box with two buttons.
  2. Creating a Home Screen Widget from developer.com. A more complicated example where it displays an image selected randomly from its collection, with instructions on how to configure the refresh-time as well as buttons on the widget. EDIT: Turns out the buttons on the widget are actually in the sequel to that tutorial, and can be found here.
  3. (I assume you've also read the official tutorial on the Android Developer website)
Sign up to request clarification or add additional context in comments.

3 Comments

The second link is now dead. Just FYI.
Apparently both links are now dead. :(
This post dates back from nearly 4 years ago, I think some dead links are to be expected.
1

Here is a nice example:

http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/

You can read the excelent Mark Murph's 'The Busy Coder's Guide to Android Development' Book

1 Comment

Good example thanks; that book you recommend does NOT cover AppWidgetProvider/AppWidgetManager stuff.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.