Arca

Build Status

The Arca library provides a comprehensive framework for caching and displaying data. It is modular by design and compatible with native Android components.

This Google I/O talk explains the basis of the architecture.

Overview

Below is a list of all the major components within the Arca framework. Each major component has a variety of minor components. Each component can be used independently or as part of the entire framework.

Arca-Core

The Arca Core package provides all the groundwork for caching data within a ContentProvider and interacting with a remote store using a Service (i.e. outside the context of your Fragments/Activities). This means your application can use less battery, less bandwidth and provide a much more responsive user experience.

Arca-App

The Arca App package makes it really easy to fetch data from a ContentProvider and bind it to elements in your layout. Your application is notified when your data changes so your UI is always up to date with the latest content.

Getting Started

Gradle

Add the following lines to your build.gradle:

compile 'io.pivotal:arca-service:1.0-beta'

compile 'io.pivotal:arca-provider:1.0-beta'

compile 'io.pivotal:arca-fragments:1.0-beta'

Further Reading

The Arca library takes all the pieces that Google provides as part of their best practices for building Android applications and bundles them with our own interface for convenience and ease of use.

In order to fully understand the entirety of this library you should familiarize yourself with the following components:

Content Providers

Loaders

CursorAdapter