Dear,
I can build you such an app that will do such task efficiently. On the other hand, you don't need to build such an app, you can automate this with Tasker an Andriod app. I can write you the script that will automate this.
I've 3+ years of experience in Android Development and published several apps in the play store. Apart from this I've also worked on automation testing and have experience in deploying deep learning models, augmented reality in Android.
Thank you for taking the time to read my application.
Best Regards
Shahrear Bin Amin