Tennis is not about swinging racket and hitting the balls on the tennis ground. It requires you to be physically in perfect shape which is possible when you pay attention to your exercise like squats, running, pull ups and other cardio exercises.
And again an app to remind you to do exercise is your best companion.