Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Fundamentals II

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Android Fundamentals II

Capacitación Fundamentos Básicos de Android

Avatar for Luis Alonso Paulino Flores

Luis Alonso Paulino Flores

October 24, 2016
Tweet

More Decks by Luis Alonso Paulino Flores

Other Decks in Programming

Transcript

  1. Content Provider A content provider manages a shared set of

    app data. Through the content provider, other apps can query or even modify the data (if the content provider allows it).
  2. Content Provider Can I create my own Content Provider? Yes,

    let’s go to see how we can do it :)
  3. Content Provider Be careful! We have many differents ways to

    store data, you should use content providers just in this situations : • You want to offer complex data or files to other applications. • You want to allow users to copy complex data from your app into other apps. • You want to provide custom search suggestions using the search framework.
  4. Services A service is a component that runs in the

    background to perform long-running operations or to perform work for remote processes. A service does not provide a user interface.
  5. Services - IntentService Service : • Main Thread • You

    have to call “stopSelf” method. • Multiple processes in parallel. IntentService : • Other Thread • You not have to call “stopSelf” method. • Manage a queue with processes, you are not allowed to use them in parallel.
  6. Services How the system should continue the service in the

    event that the system kills it? START_NO_STICKY START_STICKY START_REDELIVER_INTENT
  7. Congratulations! Now, you are ready to start coding. Always keep

    in mind the fundamentals we have reviewed if you really want to be part of the great android family devs :).