-
-
Notifications
You must be signed in to change notification settings - Fork 138
Setting up your wallpapers json file
The wallpapers section uses a JSON file stored somewhere in the internet to load wallpapers. Here's the info you need to know to write or setup the JSON file.
[
{
"name": "My wallpaper",
"author": "Jahir Fiquitiva",
"url": "https://www.mywebsite.com/wallpapers/my_wallpaper.png",
"thumbnail": "https://www.mywebsite.com/wallpapers/thumbnails/my_wallpaper.png",
"collections": "GRADIENT|ABSTRACT",
"downloadable": true,
"size": 345066,
"dimensions": "1280 x 720 px",
"copyright": "CreativeCommons Attribution-ShareALike"
},
{
"name": "My other wallpaper",
"author": "Jahir Fiquitiva",
"url": "https://www.mywebsite.com/wallpapers/my_other_wallpaper.png",
"thumbnail": "https://www.mywebsite.com/wallpapers/thumbnails/my_other_wallpaper.png",
"collections": "Landscapes,Art,Material Design",
"downloadable": false,
"copyright": "CreativeCommons Attribution-ShareALike"
}
]
Tag | Mandatory? | Description | Possible values |
---|---|---|---|
name |
YES | Wallpaper name | Any text inside quotes ""
|
author |
NO | Wallpaper author | Any text inside quotes ""
|
url |
YES | The full-size/hi-res wallpaper url | Any url inside quotes ""
|
thumbnail |
NO | A downscaled/low-res/compressed version of your wallpaper | Any url inside quotes ""
|
collections |
NO | The collections/categories where this wallpaper should be shown in | Any text inside quotes "" . Separate collections with comma (, ) |
downloadable |
NO | Whether users can download the wallpaper or not (True means yes. False means no) |
true or false
|
size |
NO | File size (Warning: size in bytes [1Mb=1024Kb, 1Kb=1024Bytes]) | Number like 1234
|
dimensions |
NO | Wallpaper dimensions with format width x height px
|
Any text inside quotes ""
|
copyright |
NO | It is always good to comply with licenses and copyright | Any text inside quotes ""
|
Blueprint allows you to use other keywords for common tags:
Tag | Possible keywords |
---|---|
Thumbnail url |
thumbnail , thumbUrl , thumb , url-thumb
|
Collections |
collections , categories , category
|
Dimensions |
dimensions , dimension
|
If you would like to store your wallpapers in your app instead of the cloud, you can do so by putting your files in the app/src/main/assets
folder, and setting the url to the following format: file:///android_asset/{file}
... where {file}
would be the path to the file under the assets folder.
Example:
File | URL (in JSON file) |
---|---|
app/src/main/assets/wallpaper.jpg |
file:///android_asset/wallpaper.jpg |
app/src/main/assets/folder/0.jpg |
file:///android_asset/folder/0.jpg |
Avoid using spaces or special characters for the files names.
When you have your JSON file ready. Upload it somewhere on the Internet and get its raw link. Then add it to frames_setup.xml
And that's it! 😄
Wiki written by Patryk Goworowski, Lumiq Creative, and Jackson Hayes. Special thanks to Sanchith Hegde. Copyright © 2018 Jahir Fiquitiva.
Licensed under the CreativeCommons Attribution-ShareAlike 4.0 International License. You may not use this file except in compliance with the License. You may obtain a copy of the License at http://creativecommons.org/licenses/by-sa/4.0/legalcode.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- Get Started
- Set Basic Values
- Create a Package
- Set App Name
- Set App Icon
- Set Launch Screen Image
- Set App Colours
- Change Store & License Settings
- Setting
blueprint_setup.xml
up - Setting
kuper_setup.xml
up - Setting
frames_setup.xml
up - Setting custom styles
- Adding Zooper widgets
- Adding Kustom assets
- Setting up Credits
- Optimize your wallpapers
- Setting up the wallpapers JSON file
- Enabling notifications
- Setting up the icon pack (1/2)
- Setting up the icon pack (2/2)
- Add support for Smart Launcher
- Update your app's changelog