How can I display the user's live wallpaper as background in my app?

Jeremy White

I am creating a lockscreen replacement app for Android and would like to incorporate the user's currently selected wallpaper as my app's background. This is pretty easy to do for static background images, but I am not sure how to get a live wallpaper into my app. Is this possible?

Christian Göllner

Yes, it's very easy. Add the following items to your theme:

<style name="MyAwesomeTheme" parent="@android:style/Theme.Holo.Or.Some.Other.Theme">
    <!-- your other theme items... 

    <!-- ADD THESE -->
    <item name="android:windowShowWallpaper">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
</style>

No other coding is necessary.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I get a transparent background in my iOS app so I can see the Home Screen wallpaper?

From Dev

how to make a background scroll according to user tap to right/left in live wallpaper app?

From Dev

iOS 7 - Display user wallpaper as UIWindow background

From Dev

Use User Wallpaper as Background in App iOS 7

From Dev

How can I hide desktop icons but keep a custom wallpaper background?

From Dev

How to check if my Live-Wallpaper is running

From Dev

Can I run a program as my Win10 wallpaper? (Similar to Android Live Wallpapers)

From Dev

How can I display current user's name on display?

From Dev

How can I make a desktop wallpaper slideshow with my own images?

From Dev

How can I tell my app was started as a result of background refresh?

From Dev

How can I tell my app was started as a result of background refresh?

From Dev

How can I know my app is working in background?

From Dev

How can I wipe my android app content after user's subscription is over?

From Dev

Using angular, how can I change a div's background image to match my user object's profileImage property?

From Dev

How do I display my user's errors?

From Dev

How do I display my user's errors?

From Dev

How can I set the live stream from ISS HD Earth View as my desktop background?

From Dev

How can I set the live stream from ISS HD Earth View as my desktop background?

From Dev

How can I set the live video feed from the ISS as my desktop background?

From Dev

How can I use the user's background color?

From Dev

How can I use the user's background color?

From Dev

How can I get Ubuntu's wallpaper without installing Ubuntu?

From Dev

how to set live wallpaper for background of layout,image view or ... is that possible?

From Dev

How can I force user to update my android app with Github?

From Dev

How can I display my live sensor data in the google sheets in only "one cell"?

From Dev

How can I display an Identity User's roles?

From Dev

How can I get the S/N of my laptop display screen?

From Dev

What database can i use for a wallpaper app?

From Dev

How to make checkboxes work in a live wallpaper Android app?

Related Related

  1. 1

    How can I get a transparent background in my iOS app so I can see the Home Screen wallpaper?

  2. 2

    how to make a background scroll according to user tap to right/left in live wallpaper app?

  3. 3

    iOS 7 - Display user wallpaper as UIWindow background

  4. 4

    Use User Wallpaper as Background in App iOS 7

  5. 5

    How can I hide desktop icons but keep a custom wallpaper background?

  6. 6

    How to check if my Live-Wallpaper is running

  7. 7

    Can I run a program as my Win10 wallpaper? (Similar to Android Live Wallpapers)

  8. 8

    How can I display current user's name on display?

  9. 9

    How can I make a desktop wallpaper slideshow with my own images?

  10. 10

    How can I tell my app was started as a result of background refresh?

  11. 11

    How can I tell my app was started as a result of background refresh?

  12. 12

    How can I know my app is working in background?

  13. 13

    How can I wipe my android app content after user's subscription is over?

  14. 14

    Using angular, how can I change a div's background image to match my user object's profileImage property?

  15. 15

    How do I display my user's errors?

  16. 16

    How do I display my user's errors?

  17. 17

    How can I set the live stream from ISS HD Earth View as my desktop background?

  18. 18

    How can I set the live stream from ISS HD Earth View as my desktop background?

  19. 19

    How can I set the live video feed from the ISS as my desktop background?

  20. 20

    How can I use the user's background color?

  21. 21

    How can I use the user's background color?

  22. 22

    How can I get Ubuntu's wallpaper without installing Ubuntu?

  23. 23

    how to set live wallpaper for background of layout,image view or ... is that possible?

  24. 24

    How can I force user to update my android app with Github?

  25. 25

    How can I display my live sensor data in the google sheets in only "one cell"?

  26. 26

    How can I display an Identity User's roles?

  27. 27

    How can I get the S/N of my laptop display screen?

  28. 28

    What database can i use for a wallpaper app?

  29. 29

    How to make checkboxes work in a live wallpaper Android app?

HotTag

Archive