droidconIN 2016

The sixth edition of droidconIN

Abhik Mitra

@abmitra

Android application architecture for truly offline apps

Submitted Jan 19, 2016

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 )

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

droidconIN is an annual conference on Android, part of the worldwide series of events. more