live-wallpaper

Set video as wallpaper on Android

淺唱寂寞╮ 提交于 2020-01-04 13:42:17
问题 I want to know how to set Video as wallpaper or it is not possioble. I can set image as wallpaper and I can build live wallpaper but I can't set video as wallpaper ? so anyone has an idea how can I do that ? Thanks in Advance. 回答1: I think the only way that it can be done is to incorporate it into a "Live Wallpaper", the downside is as others have mentioned it will take a serious toll on battery life. 回答2: this interesting, Live Wallpaper runs on Android 2.1 or higher. http://mashable.com

Android Livewallpaper settings fail to load from 'configure…' menu

五迷三道 提交于 2020-01-02 16:17:14
问题 I am unable to load the live wallpaper preferences from 'Wallpaper>Configure...'. The preferences load fine when i click the settings button from within the Livewallpaper menu. Here are some screen shots to better explain the error: Error Log The manifest file is as follows: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.RrD" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="8"

Parallax effect scrolling of live wallpaper background

只愿长相守 提交于 2020-01-02 05:00:11
问题 I'm trying to get a background in a live wallpaper to behave like a regular wallpaper with regard to scrolling when the user changes homescreens. I know the method required for this is onOffestsChanged, but I can't seem to get it working. Does anyone have advice or a code snippet to get this working? 回答1: Have your engine implement onOffsetsChanged. The xOffset variable is a float value from 0 to 1 with 0 being the leftmost screen and 1 being the rightmost. Use the width of the screen (from

Android live wallpaper fade effect

牧云@^-^@ 提交于 2020-01-01 14:23:43
问题 I would like to ask about fade and slide effect in live wallpaper. How can I make fade in/ fade out or slide in/ slide out effect in live wallpaper when change between two images. If someone knows, please help me! Thanks for reading! 回答1: With live wallpaper, you must handle these effects manually. Fade in/fade out could be achieved by drawing two bitmaps into the same canvas and varying the alpha of the second bitmap. I'm not sure what you mean by "slide" ... live wallpapers usually use an

Prevent Live Wallpaper orientation change when an application is opened and orientation is changed?

自闭症网瘾萝莉.ら 提交于 2020-01-01 08:28:09
问题 I'm having an orientation issue with a Live Wallpaper that I wrote. Basically the canvas will rotate depending on the application opened above it. I tested this and realized that the onSurfaceChanged() method is firing when I return to the home screen from a previously opened application who's orientation was changed. I suppose a better question would be, why does my Live Wallpaper Surface Change when an application is opened and it's orientation changed? Is there a way to prevent my Live

How to set the Android Live Wallpaper icon (aka “thumbnail”)

爱⌒轻易说出口 提交于 2020-01-01 08:14:08
问题 I built my first Android app. It is a Live Wallpaper designed for 2.2. When I press and hold the screen, select Wallpapers and then select Live Wallpapers , my live wallpaper has what looks like a default icon with the name of my live wallpaper overlaid. How do I set this icon? My manifest file has an application icon specified as @drawable/icon Update I think I need to add some info to this question as it poorly describes my problem (sorry). I have all the res/drawable-[hml]dpi/ icons. I

SurfaceHolder.lockCanvas returns null if the surface is not in the foreground

那年仲夏 提交于 2019-12-25 02:21:58
问题 I'm currently doing a test with a LiveWallpaper in Android. I am drawing something on the canvas using code that looks something like this: final SurfaceHolder holder = getSurfaceHolder(); Canvas c = new Canvas(); c = holder.lockCanvas(); // c becomes null c.save(); c.drawBitmap(currentBitmap); c.restore(); holder.unlockCanvasAndPost(c); This part is working fine under normal circumstances . However, I have a listener that executes this code whenever a setting is changed in the Settings that

How to handle or prevent the fatal error “Fatal signal 11 (SIGSEGV)”

泪湿孤枕 提交于 2019-12-25 02:19:24
问题 Perhapse I am lucky on the fatal error on different signals. For today that was the following: 02-05 20:57:21.827: D/MY_TEST_MESSAGE(4349): Engine.onVisibilityChanged() 02-05 20:57:21.827: D/MY_TEST_MESSAGE(4349): DrawTask #3 is created! 02-05 20:57:21.827: D/MY_TEST_MESSAGE(4349): DrawTas #3 is working! 02-05 20:57:21.837: I/brcm-gr(4349): [gralloc_lock]: new usage 0x903 02-05 20:57:21.837: I/brcm-gr(4349): [gralloc_lock]: new usage 0x930 02-05 20:57:21.877: I/brcm-gr(4349): [gralloc_lock]:

Android Permission Denial starting Intent for Wallpaper Settings

一笑奈何 提交于 2019-12-24 15:03:22
问题 Unfortunately when I try to run my wallpaper I get an error message saying Permission Denial starting Intent and requires android.permission.BIND_WALLPAPER but I can't seem to figure out why. My manifest looks like the following: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.package"> <uses-feature android:name="android.software.live_wallpaper" /> <uses-permission android:name="android.permission.SET_WALLPAPER" />

How to display banners in live wallpaper preview?

半世苍凉 提交于 2019-12-24 06:51:16
问题 I am working on a live wallpaper and I need to display a banner on top of the preview screen. I have tried several solutions, but none seems to work. I found a similar question here but I think the solution that was proposed there was more to display banners in the settings screen. The toolkit I am using (which seems to be a wrapper of AdMob) has been built for standard android applications (not live wallpapers), and it needs an activity to be able to display the banner. So my questions is: