wallpaper

How to make directly show live wallpaper in main activity?

非 Y 不嫁゛ 提交于 2019-12-25 02:34:10
问题 How to make directly show live wallpaper in main activity with android ? I want one screen , Sample: When I click to program I want to direct Live Wallpaper "Set Wallpaper" live screen: Sample Look Picture Please ![enter image description here][1] http://i.stack.imgur.com/IFzTy.png I don't want wallpaper list,I don't want main activity other button..I want only When I click to program I want to direct Live Wallpaper "Set Wallpaper" live screen. Sorry , My english is bad.. How can I do? Please

Is there a windows registry entry for the original background location?

两盒软妹~` 提交于 2019-12-24 14:36:02
问题 Is there a windows registry entry for the original background location? At "HKEY_CURRENT_USER\Control Panel\Desktop", the value "Wallpaper" is "C:\Users\CURRENTUSER\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper.jpg". 回答1: It actually depends how the wallpaper got there. This works on Windows 7, when the wallpaper is set via the control panel and wallpaper slideshows are enabled: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\General\WallpaperSource In other

Center Android Wallpaper

拈花ヽ惹草 提交于 2019-12-24 13:19:59
问题 I'm trying to make an app that changes the system wallpaper. In my code I get an image that has the desired minimum dimensions (from WallpaperManager). For example on the Nexus One the desired minimum dimensions are 884x800. When I get my image andset it as the wallpaper it automatically "left aligns" it so that I can see only the left side of the 884x800 image (The Nexus One's screen res is 480x800). Is there a way I can set the wallpaper so it is "centered"? I am setting the wallpaper like

How to set the background screen as Wallpaper all the time?

僤鯓⒐⒋嵵緔 提交于 2019-12-24 10:58:53
问题 Currently, I'm using this to show my application background as phone wallpaper. getWindow().setFlags(WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER, WindowManager.LayoutParams.FLAG_SHOW_WALLPAPER); But for some reason when I start my application by pressing the icon. It just shows the activity screen with the icons on the home screen. I didn't use dialog but it looks like a dialog because layout is just set that way. So I just want to show the wallpaper whenever this activity is running. But

setting wallpaper from assets

早过忘川 提交于 2019-12-24 01:41:08
问题 when i try to set Wallpaper from Assets it takes time to get the job done so maybe there is easier way instead of my hardcode public void Setwallpaper(int position , Context context) throws IOException{ AssetManager am = mContext.getAssets(); nlist = am.list("Gallary"); BufferedInputStream buf = new BufferedInputStream(am.open(nlist[position])); bitmap = BitmapFactory.decodeStream(buf); buf.close(); WallpaperManager myWallpaperManager = WallpaperManager .getInstance(context); try {

How to change desktop background using VC++

匆匆过客 提交于 2019-12-23 04:08:09
问题 I am currently trying to change my desktop background using SystemParametersInfo() vs doesnt give me any errors when I type my stuff in but when I run the program I get this warning with the yellow triangle and it says there was some kind of exception thrown at KernelBase.dll and then it says that some PDB has not been loaded. I did this a long time ago and was able to get it to work but i dont remember how anymore can anyone help me out? here is what I have written SystemParametersInfo(SPI

Wallpaper change event

醉酒当歌 提交于 2019-12-21 06:06:34
问题 Can I get a wallpaper changed event in a broadcast receiver? I need to detect if the user changed the wall paper. How could I do it? What I am doing is this: I have an app that changes wallpaper automaticly. If the user changes it manually using a different aplication I would like to notice it and ask the users if he/she wants to add that new wallpaper to the list in my application 回答1: There is only a broadcast for when a wallpaper image changes: http://developer.android.com/reference

Replacing desktop wallpaper / draw on the desktop

雨燕双飞 提交于 2019-12-21 05:45:59
问题 I'd like to do some custom drawing to my windows desktop such that it appears to replace the desktop background (wallpaper). My first try was to get a DC for desktopListView and draw to it: IntPtr desktopDC = GetWindowDC(desktopListView); Graphics g = Graphics.FromHwnd(desktopDC); //<-- fails on out of memory error I then tried to create a NativeWindow and capture the WM_PAINT message by assigning the native window's handle to the desktop and do my own drawing, but I was unable to see any

Getting desktop background on Mac

偶尔善良 提交于 2019-12-21 02:07:13
问题 How do I get the current wallpaper on a Mac? Just point me to an API function so I can Google more. Edit: I think I found it. [NSUserDefaults standardUserDefaults] mentioned at http://lists.apple.com/archives/student-dev/2004/Aug/msg00140.html Also possible from shell: defaults read com.apple.desktop Background And from AppleScript: http://discussions.apple.com/thread.jspa?messageID=7111272 回答1: Updated Answer (Mavericks and newer) Starting with Mavericks, Apple writes the Desktop images to

How to set wallpaper in Android

爷,独闯天下 提交于 2019-12-20 14:20:43
问题 I am using Android SDK 1.6. Could someone tell me how to set an image as the wallpaper in the homescreen. getApplicationContext().setWallpaper(); seems to be not working for me. 回答1: You have to add the SET_WALLPAPER permission to your AndroidManifest.xml <manifest xlmns:android...> ... <uses-permission android:name="android.permission.SET_WALLPAPER" /> </manifest> 来源: https://stackoverflow.com/questions/2856993/how-to-set-wallpaper-in-android