90 likes | 218 Vues
This document explores the architecture of an Android application designed by Rohit Ghatol, focusing on integrating with the Twitter API. It details key components such as boot receivers, low battery management, notification services, and alarm triggers. The app intelligently fetches new tweets during low battery situations, ensuring user engagement without unnecessary resource consumption. Key features include automatic alarm manager registration at boot and conditional notifications based on battery status. This approach optimizes the user experience while maintaining efficient use of device resources.
E N D
Droid Twit Architecture By Rohit Ghatol
Screen Flow OAuth Main Screen Tweet Settings
Twitter API Phone Boot Receiver Low Battery Receiver Service Notification Alarm Receiver App DB
Twitter API Phone Boot Receiver Low Battery Receiver Service Notification Alarm Receiver App DB
Twitter API Phone Boot Receiver Low Battery Receiver Service Notification Alarm Receiver App DB First Time application loads Enable Alarm Manager
Twitter API Phone Boot Receiver Read Tweets Low Battery Receiver Service Notification Alarm Receiver Write Tweets App DB
Twitter API Phone Boot Receiver Low Battery Receiver Service Notification Alarm Receiver App DB Alarm Triggered, ask Service to fetch new tweets, if new tweets found notify
Twitter API Phone Boot Receiver Low Battery Receiver Service Notification Alarm Receiver App DB When Phone is booted, the Phone Boot Receiver, ensure Alarm Manager is registered and so is Low Battery Receiver
Twitter API Phone Boot Receiver Low Battery Receiver Service Notification Alarm Receiver App DB When Battery is low, lets ensure Alarm Manager is disabled till battery looks good