Aldobrandi·vor 5 Jahren·discussI haven't used it in a while but I believe the app Tasker should be able to do something similar to what's described in this post.