# How to set an image as a wallpaper of the phone/

**URL:** <https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351>\
**Category:** How-to Discussions\
**Created:** [March 8, 2017, 5:33am UTC](https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351 "2017-03-08T05:33:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![quincykwende](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/quincykwende/32/645_2.png) [@quincykwende](https://forums.fusetools.com/u/quincykwende)\
**Post date:** [March 8, 2017, 5:33am UTC](https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351/1 "2017-03-08T05:33:37Z")

</div>

How can I save an image from a url as a wallpaper  
Also, How can I save/downlaod an image from a url

I would be glad if I can be assisted with this ---- it’s of utmost importance

---

<div class="post-metadata">

**Author:** ![quincykwende](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/quincykwende/32/645_2.png) [@quincykwende](https://forums.fusetools.com/u/quincykwende)\
**Post date:** [March 9, 2017, 10:06am UTC](https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351/2 "2017-03-09T10:06:35Z")

</div>

Any update or module could use – will be glad —

I have no knowledge of UNo

---

<div class="post-metadata">

**Author:** ![Enrico](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/enrico/32/144_2.png) [@Enrico](https://forums.fusetools.com/u/Enrico)\
**Post date:** [March 9, 2017, 3:50pm UTC](https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351/3 "2017-03-09T15:50:00Z")

</div>

I didn’t tried but I think that you could download an image using `fetch` and `blob`, and then use `writeBufferToFile` to save it. Something like this:

```
 var FileSystem = require("FuseJS/FileSystem");

 var buffer = new ArrayBuffer(4);

 fetch('http://www.mydomain/myimage.png')
 .then(function(response) {
       return response.blob();
 })
 .then(function(myBlob) {
     buffer = myBlob;
     FileSystem.writeBufferToFile(FileSystem.dataDirectory + "/" + "myimage.png", buffer)
     .then(function() {
         console.log("Successful write");
     }, function(error) {
         console.log(error);
     });
 });

```

About the wallpaper the Fuse [tutorial](https://www.fusetools.com/docs/tutorial/tutorial) has a [section](https://www.fusetools.com/docs/tutorial/splash-screen) that could help you. For example it [explains](https://www.fusetools.com/docs/tutorial/look-and-feel) this:

```
<Image Layer="Background" File="../Assets/background.jpg" StretchMode="Fill" />

```

You should really study the tutorial and the many [examples](https://www.fusetools.com/examples) provided.

---

<div class="post-metadata">

**Author:** ![Bent](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/bent/32/157_2.png) [@Bent](https://forums.fusetools.com/u/Bent)\
**Post date:** [March 9, 2017, 3:53pm UTC](https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351/4 "2017-03-09T15:53:34Z")

</div>

Setting a specific image as a background/wallpaper will require some Uno custom low-level logic, as there’s no such high-level built in function in Fuse (because honestly, it’s quite esoteric and specific behavior).

---

<div class="post-metadata">

**Author:** ![quincykwende](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/quincykwende/32/645_2.png) [@quincykwende](https://forums.fusetools.com/u/quincykwende)\
**Post date:** [March 9, 2017, 4:08pm UTC](https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351/5 "2017-03-09T16:08:18Z")

</div>

thanks for the update @Enrico

@Bent Stamnes thanks for the update … It’s a very important feature for my APP. The App depends on it. Setting images as wallpaper.

How can I go about it… Like do the Uno — Even a most basic android setting…

Regards

---

<div class="post-metadata">

**Author:** ![Bent](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/bent/32/157_2.png) [@Bent](https://forums.fusetools.com/u/Bent)\
**Post date:** [March 9, 2017, 4:41pm UTC](https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351/6 "2017-03-09T16:41:24Z")

</div>

Sorry to hear that, but you cannot rely on others to build your app for you. As I mentioned above, the only way to do custom work like this is through Uno.

If your app relied on this feature, you should probably have researched how to do it before you started coding your app.

---

<div class="post-metadata">

**Author:** ![kusma](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kusma/32/595_2.png) [@kusma](https://forums.fusetools.com/u/kusma)\
**Post date:** [March 9, 2017, 4:48pm UTC](https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351/7 "2017-03-09T16:48:17Z")

</div>

@quincykwende: You’re probably going to want to write some foreign Java code in order to set a wallpaper. [Here’s](https://www.fusetools.com/docs/native-interop/foreign-code) our guide for writing foreign-code. [WallpaperManager](https://developer.android.com/reference/android/app/WallpaperManager.html) is probably going to be the Java class you’re going to have to interface the most with.

---

<div class="post-metadata">

**Author:** ![quincykwende](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/quincykwende/32/645_2.png) [@quincykwende](https://forums.fusetools.com/u/quincykwende)\
**Post date:** [March 9, 2017, 5:47pm UTC](https://forums.fusetools.com/t/how-to-set-an-image-as-a-wallpaper-of-the-phone/6351/8 "2017-03-09T17:47:33Z")

</div>

Thanks a million.

> **Erik Faye-Lund wrote:**
> 
> @quincykwende: You’re probably going to want to write some foreign Java code in order to set a wallpaper. [Here’s](https://www.fusetools.com/docs/native-interop/foreign-code) our guide for writing foreign-code. [WallpaperManager](https://developer.android.com/reference/android/app/WallpaperManager.html) is probably going to be the Java class you’re going to have to interface the most with.
