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: https://developer.android.com/reference/android/app/DialogFragment.html#AlertDialog
  2. Improve EditText: https://developer.android.com/guide/topics/ui/controls/text.html

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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