1 / 9

Efficient Twitter API Integration in Android: Handling Boot, Battery, and Notifications

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.

jill
Télécharger la présentation

Efficient Twitter API Integration in Android: Handling Boot, Battery, and Notifications

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Droid Twit Architecture By Rohit Ghatol

  2. Screen Flow OAuth Main Screen Tweet Settings

  3. Twitter API Phone Boot Receiver Low Battery Receiver Service Notification Alarm Receiver App DB

  4. Twitter API Phone Boot Receiver Low Battery Receiver Service Notification Alarm Receiver App DB

  5. Twitter API Phone Boot Receiver Low Battery Receiver Service Notification Alarm Receiver App DB First Time application loads Enable Alarm Manager

  6. Twitter API Phone Boot Receiver Read Tweets Low Battery Receiver Service Notification Alarm Receiver Write Tweets App DB

  7. 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

  8. 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

  9. 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

More Related