Android Programming

Use CursorLoader to populate ListView as an asynchronous task (See).

CursorLoader is backed by ContentProvider.

You don’t need a ContentProvider to use an SQLite database if the use is entirely within your own application. (See)

Sync Adapter

Even if you use addPeriodicSync(), you need to call ContentResolver.setSyncAutomatically(account, authority, true); (See) Tutorial does not mention this / clearly.

Finishing touches

  1. Replace Activity with Alert dialog:
  2. Improve EditText:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s