private static void onAccountCreated(Account newAccount, Context context) {
        /*
         * Since we've created an account
         */
        SunshineSyncAdapter.configurePeriodicSync(context, SYNC_INTERVAL, SYNC_FLEXTIME);

        /*
         * Without calling setSyncAutomatically, our periodic sync will not be enabled.
         */
        ContentResolver.setSyncAutomatically(newAccount, context.getString(R.string.content_authority), true);

        /*
         * Finally, let's do a sync to get things started
         */
        syncImmediately(context);
    }
Helper method to get the fake account to be used with SyncAdapter, or make a new one
if the fake account doesn't exist yet.  If we make a new account, we call the
onAccountCreated method so we can initialize things.

@param context The context used to access the account service
@return a fake account.
app/src/main/java/com/example/android/sunshine/app/sync/SunshineSyncAdapter.java