Skip to content

Commit fec0c18

Browse files
scottamainAndroid (Google) Code Review
authored andcommitted
Merge "docs: add info about live wallpaper picker" into jb-dev
2 parents b6d148d + 3fd21b5 commit fec0c18

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docs/html/about/versions/android-4.1.jd

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,18 @@ the content provider does. It's useful when you are interacting with content pro
112112
app.</p>
113113

114114

115-
<h3 id="LiveWallpapers">Live Wallpapers</h3>
116115

117-
<p>New intent protocol to directly launch the live wallpaper preview activity, so the user can
118-
select a specified live wallpaper as the new wallpaper. This allows live wallpapers to provide an
119-
easy path for the user to select the wallpaper from its own UI, without forcing the user to leave
120-
the app and navigate through the Home wallpaper picker.</p>
116+
<h3 id="LiveWallpapers">Live Wallpapers</h3>
121117

118+
<p>New intent protocol to directly launch the live wallpaper preview activity so you can help
119+
users easily select your live wallpaper without forcing them to leave
120+
your app and navigate through the Home wallpaper picker.</p>
122121

122+
<p>To launch the live wallpaper picker, call {@link android.content.Context#startActivity
123+
startActivity()} with an {@link android.content.Intent} using
124+
{@link android.app.WallpaperManager#ACTION_CHANGE_LIVE_WALLPAPER} and an extra
125+
that specifies your live wallpaper {@link android.content.ComponentName} as a string in {@link
126+
android.app.WallpaperManager#EXTRA_LIVE_WALLPAPER_COMPONENT}.</p>
123127

124128

125129

0 commit comments

Comments
 (0)