Android - Sync Contact Add Programmatically To Google Account
In my app I need to add contact to default google account and sync it. Here my code: public static void addContact(Context context, String DisplayName,String WorkNumber, String Mob
Solution 1:
Your code works fine on my devices (Android 4.0.4 and 4.1.2), on Google server contacts for account appear automatically and from one device to other device. Thank you very much for the code, by the way.
IMHO the issue is not the code, but sync settings of your device.
Solution 2:
if you have multiple account open in device it's save in only first account not the default one account.
Baca Juga
- Handle Multiple Infinite Tasks In A Single Thread? P.s Run One Task At A Time And Control Its Task Behavior(i.e Starting/stoping Task) From Outside
- What Is The Best Pattern To Sync Data Between Two Recycler View With Two Activities?
- Can An Android Asynctask Doinbackground Be Synchronized To Serialize The Task Execution?
Post a Comment for "Android - Sync Contact Add Programmatically To Google Account"