Use system wallpaper as application's wallpaper

Just as Android provides other built-in resources, there are several themes that you swap in without having to write one yourself.

To set this theme for all the activites of your application, open the AndroidManifest.xml file and edit the tag to include the android:theme attribute with the theme name.

If you want the theme applied to just one Activity in your application, then add the theme attribute to the tag, instead.

If you want to use system wallpaper as your own application's wall paper, add android:theme="@android:style/Theme.Wallpaper" in your AndroidManifest.xml.

Example:




package="com.exercise.AndroidSysTheme"
android:versionCode="1"
android:versionName="1.0">
android:theme="@android:style/Theme.Wallpaper"
>
android:label="@string/app_name">












Post a Comment

Previous Post Next Post

Contact Form