Back to project page CloudyPhone.
The source code is released under:
MIT License
If you think the Android project CloudyPhone listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cloudyphone.android.controller.commands; /*from ww w .j av a 2 s. co m*/ import java.util.Collection; import android.content.ContentResolver; import com.cloudyphone.android.model.contact.ContactsManager; import com.cloudyphone.android.model.contact.ParseContactImg; import com.cloudyphone.android.model.contact.ParseContacts; import com.cloudyphone.android.utils.Logger; import com.parse.ParseException; public class SyncContactsImagesCommand implements Command { private ContentResolver cr; private ParseContacts contacts; public SyncContactsImagesCommand(ContentResolver cr, ParseContacts contacts) { this.cr = cr; this.contacts = contacts; } @Override public void execute() { Collection<ParseContactImg> imgs = ContactsManager.getAllContactImages( cr, contacts.getContacts()); // Save all images for (ParseContactImg img : imgs) { try { img.save(); Logger.print(this, img.getUrl()); } catch (ParseException e) { } } // TODO may store file list in Parse // TODO may nofity server when all contact images are ok } }