I am using a SyncAdapter
in my application in which the frequency of Periodic Sync is increased when user enters a particular activity.
I wanted to know if there is a way in which I can let the application know which activity has called the SyncAdapter
?
I tried setting a public static boolean variable to true when it enters the fast frequency Activity but the SyncAdapter
method onPerformSync()
always prints false. What is the reason for this?