Code example for AccountManager

Methods: setUserData

0
     * Save off the high-water-mark we receive back from the server. 
     * @param account The account we're syncing 
     * @param marker The high-water-mark we want to save. 
     */ 
    private void setServerSyncMarker(Account account, long marker) {
        mAccountManager.setUserData(account, SYNC_MARKER_KEY, Long.toString(marker));
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE