wallpaper

How to start the “set as” intent (wallpaper, contact picture, etc)

一世执手 提交于 2019-11-30 05:27:10
I searched over the web during the last few weeks (seriously) but I can't find what I need. I just would like to start an intent corresponding to the set as action. It generally offers either Set as wallpaper or Set as contact picture . And then, if more application are installed on the device, they can be listed as well. Here is an example of what I want : I precise that I need to support API level 14 and higher. I found getCropAndSetWallpaperIntent but it works only with content URI which is a problem for me, and is only availbable on API lvl 19 and higher. I found the answer by my self :

iOS 7 - Display user wallpaper as UIWindow background

為{幸葍}努か 提交于 2019-11-30 01:59:03
How would it be possible to have an iOS app display the user's wallpaper? Apple uses this in places like the tab view in Safari and the keypad in Phone. Setting the transparency of UIWindow proved to no avail... This is no longer available. Too bad, because it allowed a sweet native looking effect there are a few things you need to do to show the user wallpaper 1 - set UIApplicationIsOpaque to false in the project plist 2 - In the app delegate load function self.window.backgroundColor = [UIColor clearColor]; self.window.opaque = NO; 3 - set the UIViewController.view background color to

Simplest example of an Android live wallpaper [closed]

本秂侑毒 提交于 2019-11-29 23:08:42
I'm trying to make an android live wallpaper. I am looking for just a simple example that just displays a solid background and does nothing else to get me started. I've looked up quite a few tutorials but they all have preference activities and I can't get any of them to work. I've even tried removing everything that it does not need other than the required override functions. Can anyone post the code for just a simple live wallpaper or post a link to an example that definitely works. I've been using the android emulator with version 2.1 sdk 7. It runs the cube live wallpaper that comes in the

Live Wallpaper Water Ripple Effect

跟風遠走 提交于 2019-11-29 20:31:30
I'm working on a live wallpaper that incorporates some water ripple effects on touching the screen but I'm a little stuck. Would it be better to create multiple images and loop through them to create a ripple animation or would it be better to distort the bitmap a bit before I place it on the canvas? This is a video of a very nice ripple effect done through OpenGL. I don't have any experience yet with OpenGL and was wondering if it is still possible to create a 2D water effect on the live wallpaper? esteewhy I wanted to implemented a realistic ripple effect in Android too, so will share my

Using WallpaperManager in Android to set wallpaper

那年仲夏 提交于 2019-11-29 15:22:18
问题 Below are my codes, I want to use wallpaper manager to set as wallpaper. I'm using Universal Image Loader, but i dont know how implement wallpaper manager. My setWall() is not working, kinda confusing. import android.graphics.Bitmap; import android.os.Bundle; import android.os.Parcelable; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View;

How to exlude all the devices which have low GPU in Android Manifest?

拥有回忆 提交于 2019-11-29 14:10:22
Basically, I created a live wallpaper for Android and tried it in my Droid X, Galaxy S, and Fascinate. And I noticed that it runs smootly in Galaxy S and Fasciante but not in Droid X which has lower GPU. My question is, is there anyway to exlude all the devices which has low GPU in Android Manifest? I am planning to publish this live wallpaper soon. Please help me! You can add supports-screens to the manifest, and pass in a true false valuefor each size. The below example would exclude all mobile handsets. Id imagine a solution to narrow everything down to exactly you want would be similar to

Tile/Center image in the forms background

我怕爱的太早我们不能终老 提交于 2019-11-29 11:05:42
Is there a way to place an image in the form background and be able to tile it or center it ? Also I need to place other components on top of the image. I tried rmControls but I cannot place anything on top of the image. You can paint your image in an OnPaint handler for the form. Here's a simple example of tiling: procedure TMyForm.FormPaint(Sender: TObject); var Bitmap: TBitmap; Left, Top: Integer; begin Bitmap := TBitmap.Create; Try Bitmap.LoadFromFile('C:\desktop\bitmap.bmp'); Left := 0; while Left<Width do begin Top := 0; while Top<Height do begin Canvas.Draw(Left, Top, Bitmap); inc(Top,

Changing wallpaper on Linux programmatically

橙三吉。 提交于 2019-11-29 10:29:29
问题 How would I change the wallpaper on a Linux desktop (using GNOME) within a C/C++ program? Is there a system API to do it? 回答1: Though the question was gnome-specific, there's also a way to deal with the wallpaper that is not depepndant on the higher layer toolkits. You should be able to deal with the root window (which the wallpaper is, in fact) by studying the source of xsetroot.c, the most interesting part of which I copypaste here: static void SetBackgroundToBitmap(Pixmap bitmap, unsigned

Drawing on the desktop background as wallpaper replacement (Windows/C#)

别来无恙 提交于 2019-11-29 09:25:38
问题 I'm trying to make an application that needs to draw on the desktop, behind the icons so it appears to replace the desktop wallpaper. I've found a few solutions to this, but most of them didn't work very well (lots of flickering). One solution seems to be what I'm looking for, but I don't really get it. I've done mostly C# applications using either higher-level graphics libraries or just Windows Forms, and some C++ but only on non-Windows platforms. If anyone could "translate" it for me or

Change Windows Background from Python

天大地大妈咪最大 提交于 2019-11-29 07:03:20
Does anyone know a way to change the Windows Desktop Wallpaper with python so that the change is permanent? I have found this code import ctypes SPI_SETDESKWALLPAPER = 20 ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, "myimage.jpg" , 0) This code works, but once you log off and log on again, the background is back to the original image. I would prefer a solution that does not require any registry edit, and I would like something that works with Windows XP and 7 if it is possible. This solution combines several of the comments made, and works for me: import ctypes import os