There are two option to play activities in Android:
1st: Detecting the activity in specific time intervals:
public Task<Void> requestActivityUpdates (
long detectionIntervalMillis,
PendingIntent callbackIntent
);
2nd: Handling specific activity/activities by catching them in transition:
public Task<Void> requestActivityTransitionUpdates (
ActivityTransitionRequest activityTransitionRequest,
PendingIntent pendingIntent
);
Second choice has not a detection interval argument. So how many times does it check sensors in a minute is not clear.
I wonder that which one should be used when considering the battery impact?