I'm trying to create a Twitter client and in the background I would like it to monitor new tweets from a person. The way it's currently doing it is it runs on a Timer every 5 minutes to check for new tweets, and sends a push notification. Doing it this way, I'm afraid this might cause a huge battery consumption. Is there a way to do this in real time?
One idea:
Setup a b4j server which fetch twitter every minute. You can send a pushnotification to your android app when something new.
On android fetch the new tweets when the notication arrives.