zendesk / android-db-commons

Some common utilities for ContentProvider/ContentResolver/Cursor and other db-related android stuff
Apache License 2.0
222 stars 28 forks source link

Make ProviderActions Parcelable #41

Open henieek opened 10 years ago

henieek commented 10 years ago

So we are able to pass ProviderActions to Services'n'stuff.

public static ActionsExecutorService extends IntentService {
  public static void perform(Context, ProviderAction) {
     // construct Intent and start
  }
  // ...
  protected void onHandleIntent(Intent) {
      extract(intent).perform(getContentResolver());
  }
}

And hundreds of other use cases as well. :-)

henieek commented 10 years ago

This includes also Batcher class as soon as it gets merged with master.