wallpaper

Phonegap setting wallpaper from www assets? Android

旧时模样 提交于 2019-12-20 04:19:45
问题 I'm building a phonegap app for Android and need a way to set wallpapers from a .jpg included in the www directory of the app using javascript. How would I go about building a phonegap plugin that works with resources in my phonegap apps www folder? 回答1: just read file from asset folder. with Plugin import java.io.IOException; import org.apache.cordova.api.Plugin; import org.apache.cordova.api.PluginResult; import org.apache.cordova.api.PluginResult.Status; import org.json.JSONArray; import

How to set wallpaper from imageview

若如初见. 提交于 2019-12-19 04:38:14
问题 I am still can't find the way to set wallpaper that the image getting from ImageView. Anyone can show me the way to set phone wallpaper from android ImageView? Here is my code: ImageView Layout: <ImageView android:contentDescription="My Wallpaper" android:id="@+id/full_image_view" android:layout_width="fill_parent" android:layout_height="fill_parent" android:saveEnabled="true" /> Activity on Image View Please noted that the image that showing in FullImageActivity is getting from image

Change the wallpaper on all desktops in OS X 10.7 Lion?

限于喜欢 提交于 2019-12-18 12:57:05
问题 I would like to change the wallpaper of all desktops (formerly "spaces") on a screen. As of OS X 10.6 there is a category to NSWorkspace which allows the setting of the wallpaper, however, when I use this function only the wallpaper of the current desktop gets changed and all the other desktops remain unchanged. I then looked at the desktop preferences plist and wrote a class that modifies it to reflect the changes I want (basically set a new image file path). After the new file was saved I

How do I change my Windows desktop wallpaper programmatically?

大城市里の小女人 提交于 2019-12-18 10:24:14
问题 I'd wish to set a wallpaper for Windows XP using C#. I've developed the code so it perfectly works in Windows 7, but apparently it's not the same for XP. I add that wallpaper as a resource, set its compile action as Content and Always copy. It, curiously, sets the correct Wallpaper name inside the Desktop's properties dialog. However, the wallpaper is not set. My code looks like this: public sealed class Wallpaper { Wallpaper() { } const int SPI_SETDESKWALLPAPER = 20; const int SPIF

Live Wallpaper Water Ripple Effect

百般思念 提交于 2019-12-18 10:17:17
问题 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

change wallpaper via iphone app

戏子无情 提交于 2019-12-18 09:05:12
问题 Does apple allows me to change the wallpaper of the iphone from my application? 回答1: The public iOS 4.0 API so far does not allow changing any of the iPhone wallpapers programmatically. Undocumented APIs are not supported by Apple, so no, I don't think they would allow it. However, technically it should be possible to do so. 回答2: Nope, no public APIs for it even with the latest SDK. You need to ask the user to save your image as a wallpaper manually. 来源: https://stackoverflow.com/questions

How to add background images to Delphi forms

不羁的心 提交于 2019-12-18 07:05:35
问题 How can I add a background image to my delphi form? I added a TImage, but now the labels aren't visible any more, and the texts of my checkboxes are in a blue "box" (blue is the background color i chose). This blue doesn't look very good on the background image, and the hidden labels also don't look good. How do I fix these problems? 回答1: For the labels: make sure that they are transparent (Transparent property in the Object Inspector), and that they are on top of the TImage in the Z-order of

android - save image from web server and set it as wallpaper

白昼怎懂夜的黑 提交于 2019-12-18 03:49:13
问题 Can anyone please provide me some idea/guidance on how to save an image from a webserver and set it as wallpaper? i am developing an android application which needs to do that and i am new in android. Thanks a lot. I had tried writing my own code but it doesn't work as i can't find my images after download but the wallpaper has change to the downloaded picture. here is my existing code. Bitmap bmImg; void downloadFile(String fileUrl) { URL myFileUrl = null; try { myFileUrl = new URL(fileUrl);

Wallpaper not properly fit on device screen

 ̄綄美尐妖づ 提交于 2019-12-17 06:45:34
问题 I have one set of images in one drawable folder. I have one button to set image as wallpaper on device screen. But when I set this image as wallpaper its either zoom or cropped. I want image should fit on screen size. I have seen lots of links on SO but no link is work for me. This is the code I am trying so far. Code- Bitmap bmap2 = BitmapFactory.decodeStream(getResources().openRawResource(mThumb[position])); DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay

How to set an image in my own app as wallpaper of lock screen in ios7?

落花浮王杯 提交于 2019-12-14 03:32:04
问题 I am building an album app. I want to set a photo in my own app as wallpaper. Is there some method available for doing so? update: I know there are already some similar questions posted. But they are out of time. So I am wondering if there is some method in iOS7 to implement so. 回答1: For apps going into the app store this isn't possible. Apps can't change anything outside of their environment this is because apps on iOS run in a sandboxed mode so they don't know anything about other apps that