Hello everyone,
I am struggling with a problem where I want to check as whether my app sync
account if not exist then add it programmatically in addition to linking of
periodic sync also with that account. So to check if account exist or not,
I am doing that by using <AccountManager.get
(context).getAccountsByType("type") != null and AccountManager.get
(context).getAccountsByType("type").length > 0>. Now I want to check that
whether periodic sync is linked with this account or not for which I am
using ContentResolver.getPeriodicSyncs(). So the problem is even if
periodic sync is not added to the account, getPeriodicSyncs() is returning
a single item in the list with value of member variable <period> as 86400.
Where is this 86400 value coming from as I want to set periodic sync of 1
hour <3600>. Is there any default value or something for this member
variable ?
Please suggest.
--
You received this message because you are subscribed to the Google Groups
"Android Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-discuss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-discuss/e04023b2-4937-4cdd-ba45-169524f31b4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.