android-dreamscene icon indicating copy to clipboard operation
android-dreamscene copied to clipboard

How do I include my own images?

Open blitzmann opened this issue 7 years ago • 1 comments

Hi there!

This is a great app, however I find myself wanting to add my own images. Some of the defaults are great, but some I would rather replace with something else.

Taking a look at the code, it seem that it's hardcoded to look at your repo's background.json: https://github.com/klinker41/android-dreamscene/blob/master/app/src/main/java/com/klinker/android/dream/DreamSceneService.java#L43

I'm not an Android developer, so I wouldn't know how to fork this and change it to my own repo for my own purposes. It might be easy, but then again I feel like it would be better to have this as a configuration option for the app itself. Or, to avoid the complications of creating config UI, look for a background.json file on the local device that can be edited via a file explorer, and if there's nothing there then look at the repo to copy the file down.

blitzmann avatar Jul 02 '17 20:07 blitzmann

There are some basic instructions on how to do this in the readme. Basically, you have two options:

You can fork the project and modify the background.json file in the root of your fork with whatever backgrounds you want. Then you can point the service to your new file instead and rebuild it.

You can also just modify the json file however you want to and then paste it here and I can branch and rebuild it for you.

klinker41 avatar Jul 02 '17 21:07 klinker41