I have found that the code available for animating image views like here: How to programatically animate an ImageView
doesn't work when the ImageView is created inside a service and not an activity. How to then animate ImageViews in a windowmanager in an Android service?