[android-developers] Re: Synchronization period
Tanks for explanations. I have one more strange thing with synchronization. Calling ContentResolver.requestSync does nothing unfortunately. But I expect the synchronization to start. Dose anyone know a reason for such a behavior? On 27 September 2010 16:09, Roman Mazur mazur.ro...@gmail.com wrote: -- Forwarded message -- From: Jens dunkingbikk...@gmail.com Date: Sep 26, 11:50 pm Subject: Synchronization period To: Android Developers If you are using 2.2 / api level 8 you could use http://developer.android.com/reference/android/content/ContentResolve...) For 2.1 you're going to have to use the AlarmManager to schedule your synchronizations. On 24 Sep, 13:50, Roman Mazur mazur.ro...@gmail.com wrote: What is the method to define a sync period for some account? ContentResolver allows to set automatic sync flag only. But what is period? Have I missed something? Or have I to schedule sync requests myself using the AlarmManager? Thanks. -- Best regards, Roman Mazur Tech Lead at Stanfy (http://stanfy.com.ua) Skype: roman.mazur.f LinkedIn: http://ua.linkedin.com/in/romanmazur Twitter: http://twitter.com/roman_mazur -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Synchronization period
Tanks for explanations. I have one more strange thing with synchronization. Calling ContentResolver.requestSync does nothing unfortunately. But I expect the synchronization to start. Dose anyone know a reason for such a behavior? On Sep 26, 11:50 pm, Jens dunkingbikk...@gmail.com wrote: If you are using 2.2 / api level 8 you could use http://developer.android.com/reference/android/content/ContentResolve...) For 2.1 you're going to have to use the AlarmManager to schedule your synchronizations. On 24 Sep, 13:50, Roman Mazur mazur.ro...@gmail.com wrote: What is the method to define asyncperiodfor some account? ContentResolver allows to set automaticsyncflag only. But what is period? Have I missed something? Or have I to schedulesyncrequests myself using the AlarmManager? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Synchronization period
I don't believe you can rely on a sync request to be executed on immediately. It will be added to the queue of accounts to be synchronized which means it may take a number of seconds before action is taken. Also, be sure that sync is not turned off under Accounts sync. Cheers, Stacy On Wed, Sep 29, 2010 at 8:10 AM, Roman Mazur mazur.ro...@gmail.com wrote: Tanks for explanations. I have one more strange thing with synchronization. Calling ContentResolver.requestSync does nothing unfortunately. But I expect the synchronization to start. Dose anyone know a reason for such a behavior? On 27 September 2010 16:09, Roman Mazur mazur.ro...@gmail.com wrote: -- Forwarded message -- From: Jens dunkingbikk...@gmail.com Date: Sep 26, 11:50 pm Subject: Synchronization period To: Android Developers If you are using 2.2 / api level 8 you could use http://developer.android.com/reference/android/content/ContentResolve...) For 2.1 you're going to have to use the AlarmManager to schedule your synchronizations. On 24 Sep, 13:50, Roman Mazur mazur.ro...@gmail.com wrote: What is the method to define a sync period for some account? ContentResolver allows to set automatic sync flag only. But what is period? Have I missed something? Or have I to schedule sync requests myself using the AlarmManager? Thanks. -- Best regards, Roman Mazur Tech Lead at Stanfy (http://stanfy.com.ua) Skype: roman.mazur.f LinkedIn: http://ua.linkedin.com/in/romanmazur Twitter: http://twitter.com/roman_mazur -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Synchronization period
If you are using 2.2 / api level 8 you could use http://developer.android.com/reference/android/content/ContentResolver.html#addPeriodicSync(android.accounts.Account,%20java.lang.String,%20android.os.Bundle,%20long) For 2.1 you're going to have to use the AlarmManager to schedule your synchronizations. On 24 Sep, 13:50, Roman Mazur mazur.ro...@gmail.com wrote: What is the method to define a sync period for some account? ContentResolver allows to set automatic sync flag only. But what is period? Have I missed something? Or have I to schedule sync requests myself using the AlarmManager? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en