Fragments 2017

A conference on the mobile ecosystem in India

Participate

"My app crashes with NullPointerException when the user rotates the phone while a network request is happening"

Submitted by Saket Narayan (@saketme) on Tuesday, 13 June 2017

Section: Full Talk Technical level: Advanced

Abstract

“My app crashes with NullPointerException when the user rotates the phone while a network request is happening. Do you have any plans to fix?” - Jake Bhagwan Wharton.

Dealing with Activity lifecycles can be difficult, especially when working with long running background operations like network calls. But this complexity can greatly be reduced by following a design pattern that is independent of all lifecycles. One such pattern is using a data provider as the single source of truth.

Outline

  • Designing “auto-updating” UIs using reactive programming.
  • Retaining app state across Activity configuration (e.g., orientation) and process deaths.
  • Creating fire-and-forget network calls that affect the UI without caring to unsubscribe them on Activity stop/destroy.
  • Designing an offline-first code archiecture.
  • Exploring LiveData introduced at Google IO 2017.

Requirements

You must have spent atleast a couple of years banging your head on walls while dealing with Android lifecycles and asynchronous jobs. A basic knowledge of RxJava or reactive programming in general will also be nice to have, but is not necessary.

Speaker bio

Saket is passionate about building personal, contextual software that is always aware of the user’s intentions. He started developing Android applications 4 years ago, when Ice Cream Sandwich was still the shiny new thing. He strives for perfection, especially when it comes to user experience. He will often tweak animations down to the millisecond to make them feel more natural.

He works with Uncommon.

Links

Comments

  • Harshit Bangar (@bangarh) 2 years ago

    Really excited for this.

  • Sandhya Ramesh (@sandhyaramesh) 2 years ago

    Hello! Thank you for submitting to Fragments. In order to evaluate your proposal, please submit your slide deck and a two minute self recorded preview video explaining your talk. Thank you!

  • martin garix 2 months ago

    I really enjoing played this amzzing simple skill based game,finally one a single click here this url link https://mahjongconnectonline.com i am sure you can easily play or control this game.

Login with Twitter or Google to leave a comment