Skip to Content
Professional Android™ 2 Application Development
book

Professional Android™ 2 Application Development

by Reto Meier
March 2010
Intermediate to advanced
575 pages
14h 25m
English
Wrox
Content preview from Professional Android™ 2 Application Development

Chapter 10. Invading the Phone-Top

WHAT'S IN THIS CHAPTER?

  • Creating home screen Widgets

  • Implementing Live Folders

  • Adding search to your applications

  • Surfacing search results to the Quick Search Box

  • Creating Live Wallpaper

Widgets, Live Folders, Live Wallpaper, and the Quick Search Box let you own a piece of the user's home screen, providing either a window to your application or a stand-alone source of information directly on the home screen. They're an exciting innovation for users and developers, providing the following:

  • Users get instant access to interesting information without needing to open an application.

  • Developers get an entry point to their applications directly from the home screen.

A useful widget, Live Folder, or dynamic wallpaper decreases the chance that an application will be uninstalled, and increases the likelihood of its being used.

With such power comes responsibility. Widgets run constantly as subprocesses of the home-screen process. You need to be particularly careful when creating widgets to ensure they remain responsive and don't drain system resources.

This chapter demonstrates how to create and use App Widgets, Live Folders, and Live Wallpaper detailing what they are, how to use them, and some techniques for incorporating interactivity into these application components.

It also describes how to integrate the Android search framework into your application and surface search results to the Quick Search Box.

INTRODUCING HOME-SCREEN WIDGETS

Widgets, more properly AppWidgets ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Professional Android 4 Application Development, 3rd Edition

Professional Android 4 Application Development, 3rd Edition

Reto Meier

Publisher Resources

ISBN: 9780470565520Purchase book