live-wallpaper

Android Live Wallpapers — OpenGL vs Canvas

筅森魡賤 提交于 2019-11-27 12:25:31
问题 I am a fairly "newb" Android developer, and I would like one of my first projects to be a live wallpaper, however I am conflicted on whether I should be focusing on Canvas or OpenGL for it. Being new to this I know I should master Canvas first since it is easier to use, but I prefer to learn from real world projects that I have an interest in, even if it's a little backwards at times. I have used both before in very basic ways, and I understand the general concepts to them, but I am not sure

Android video as a live wallpaper

泄露秘密 提交于 2019-11-27 11:49:42
问题 i am trying to put video as a live wallpaper. I am using media player for that. i can get SurfaceHolder and i can give that holder to the media player. But its not working for me, its giving me following exception LogCat Exception Detail ERROR/AndroidRuntime(302): java.lang.UnsupportedOperationException: Wallpapers do not support keep screen on if i dont give holder to the media player it works, but i can hear only audio. I saw one application VideoLiveWallpaper , which set video as a live

android live wallpaper rescaling

故事扮演 提交于 2019-11-27 08:59:46
I am learning how to make live wallpapers, but I have a dilemma I'm sure all who start off have as well. There is so many resolution screen sizes, how can I just make one set of artwork to be rescaled in code for all versions? I know it's been done as I seen the images in the apk's on a lot of them and they get rescaled. If it was just one image that did not need any positioning that would be easy, but my problem is I have to get the background image rescaled to fit all devices, I also have animations that fit in a certain x and y position on that background image to fit in place so it looks

Android Live Wallpaper Touch Event Hierarchy

落爺英雄遲暮 提交于 2019-11-26 23:31:52
问题 I have a Live Wallpaper that uses various screen touches to trigger certain events. At the moment it is working but I seem to get all touch events. For example, when the user touches an icon to launch an app, I seem to get that event too. Is it possible to determine whether the user has touched the background screen (i.e. the inter-icon gaps.) so that I can only take my actions at that time and ignore the others. Failing that, (and assuming – possibly erroneously – that if I am first in the

Set Live Wallpaper Programmatically on Rooted Device Android

家住魔仙堡 提交于 2019-11-26 23:00:18
Is it possible somehow to set Live Wallpaper programmatically using my Application? I am working on an Application that her purpose is to choose some of the Installed Live Wallpapers on the device and to set it as a Live Wallpaper. This action need to be completed via my Application. As I was researching I found some answers that this can be done with rooting the Android Device? Can some one help me out how to do that exactly? Android OS prior to Jelly Bean does not allow you to programatically set a live wallpaper. For now Jelly Bean supports changing the Live Wallpaper programtically without

using onOffsetsChanged() to get home screen swipe direction

▼魔方 西西 提交于 2019-11-26 21:44:20
问题 I'm working on my Live Wallpaper and I want it to scroll with the screen like a normal wallpaper does. I know I need to use onOffsetsChanged() but which parameter will tell me the direction that the home screen is being swiped? It seems like xOffset always returns a positive value no matter which way the screen slides. Thank you. 回答1: The direction alone will not help you: you need to know the exact offset, because the user may have jumped several screens at once (e.g. by using a pop-up that

How to play video as live wallpaper android?

纵饮孤独 提交于 2019-11-26 19:38:59
问题 Does anyone know how to play .mp4 video as live wallpaper ? I searched a lot, but couldn't find the solution. I just found this one but I am not getting any idea from it. Please help me if you have any idea regarding this concept. 回答1: After spending 3 days finally I run this project in eclipse. I am sharing the steps as it may help others: Firstly, the most important thing is that Your project path and ndk path should not contain spaces else you will have problems following these steps. I

Choosing background for Live Wallpaper

穿精又带淫゛_ 提交于 2019-11-26 19:21:24
问题 I'm writing a live wallpaper that creates an effect over a background. I want the user to be able to choose the background from any of the system wallpapers and camera photos. What I would like is for the user to be able to press a button in the Settings menu, have the list of options show up just like setting the wallpaper from the home screen, minus the Live Wallpapers options. Once the user navigates the choices and picks an actually image I would load it to my canvas. How do I do this? I

Setting live wallpaper programmatically

帅比萌擦擦* 提交于 2019-11-26 19:10:01
问题 Is it possible to set a live wallpaper using some lines of code. For example, i want to tell my users that a live wallpaper is available "click here to set it". 回答1: Alright, just so I stop getting downvotes for an outdated answer. Please see Error 454's answer below for a more robust solution which will send the user directly to the wallpaper preview screen on Jelly Bean and up devices. ======================================== Here's how to start the wallpaper chooser, from which the user

android live wallpaper rescaling

邮差的信 提交于 2019-11-26 14:25:33
问题 I am learning how to make live wallpapers, but I have a dilemma I'm sure all who start off have as well. There is so many resolution screen sizes, how can I just make one set of artwork to be rescaled in code for all versions? I know it's been done as I seen the images in the apk's on a lot of them and they get rescaled. If it was just one image that did not need any positioning that would be easy, but my problem is I have to get the background image rescaled to fit all devices, I also have