Wallpapermanager usage example in Android

Wallpapermanager usage example in Android

Note: @ h_ 403_ 6 @ permission to add wallpaper settings:

1. Acquisition of wallpapermanager object:

2. How to set wallpaper:

Method 1: wallpapermanager. Setbitmap()// Parameter method 2: wallpapermanager. Setresource()// The parameter is the resource ID. method 3: through setwallpaper() in the contextwrapper class; Method / / the parameter is an input stream

3. Changing wallpaper regularly:

Using the AlarmManager system timing service

The following is a service used to set wallpaper:

The above is an example of Android wallpapermanager. If you have any questions, please leave a message or go to the community of this site for communication and discussion. Thank you for reading. I hope it can help you. Thank you for your support to this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>