droidconIN 2016

The sixth edition of droidconIN

Android application architecture for truly offline apps

Submitted by Abhik Mitra (@abmitra) on Tuesday, 19 January 2016

videocam_off

Technical level

Intermediate

Section

Full talk (40 minutes)

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +17

Abstract

To share our learnings of building an offline ready App with the entire community and also take their feedbacks on the same.

Outline

Does your App suffer from these problems ?

  1. High Battery usage - (Because of polling)
  2. Stale Data - (Because you are not polling)
  3. Different behavior for different state - (Prefetch data when in Wifi and Charging , make request while the device starts motion).
  4. Code Organization - (When does this API get called. With wifi ? While the person is walking? with 3g and battery ? )
  5. Retry of requests - (Sending email while you are in a flight)

How can we solve it ?

  1. Batching of Requests when the Cellular Antenna is opened.
  2. Rules and triggers based on push.
  3. Aggressive API calls depending on device state. (WIFI and Charging/On Boot)
  4. Readable way to understand when each API will be called. (Code Organization that our PM’s can understand!)
  5. Retry even when the app is killed.
  6. Exponential back off when request fails. (Server is down ?)

What is the Application Architecture did we follow to solve these ?

Thats what the talk is about!!

The goal of this talk is to apprise the community of the Android architecture that we follow here in my team at Microsoft.


What this talk is not about ?
  1. How to store data in a DB
  2. Particular library like Volley, OkHttp etc
  3. Microsoft Solutions or Products.

Speaker bio

I am an Android Engineer at Microsoft working on the Microsoft Office team. I have spent the last year building Outlook Groups for Android, the new group collaboration app for enterprise. I am also passionate about the web and the Open Source. You can find me @ Github ( https://github.com/abhikmitra )

Links

Comments

Login with Twitter or Google to leave a comment