N Nicolás Cieri Active Member Licensed User Jul 28, 2020 #1 Hi, i'm tried this sample https://www.b4x.com/android/forum/threads/physical-activity-recognition-detection.42481/ But B4X: For Each ev As TransitionEvent In Starter.client.GetTransitionEvents(StartingIntent) Log(ev) 'ignore ToastMessageShow("" & ev, True) Next Service.StopAutomaticForeground This code is never fired.. Any idea.. Even the Erel example, updated in May2020 ... doesn't trigger the event.
Hi, i'm tried this sample https://www.b4x.com/android/forum/threads/physical-activity-recognition-detection.42481/ But B4X: For Each ev As TransitionEvent In Starter.client.GetTransitionEvents(StartingIntent) Log(ev) 'ignore ToastMessageShow("" & ev, True) Next Service.StopAutomaticForeground This code is never fired.. Any idea.. Even the Erel example, updated in May2020 ... doesn't trigger the event.
Erel B4X founder Staff member Licensed User Longtime User Jul 29, 2020 #2 What do you see in the logs? What is the Android version? Upvote 0
N Nicolás Cieri Active Member Licensed User Jul 29, 2020 #3 Android Version 10. B4a Version 10.0. The service apparently starts, since this variable shows me "true", but I never receive an event. B4X: Dim activities As List = Array("IN_VEHICLE", "ON_BICYCLE", "ON_FOOT", "STILL", "WALKING", "RUNNING") Wait For (Starter.client.RequestTransitionUpdates(activities)) Complete (Success As Boolean) Log(Success) Upvote 0
Android Version 10. B4a Version 10.0. The service apparently starts, since this variable shows me "true", but I never receive an event. B4X: Dim activities As List = Array("IN_VEHICLE", "ON_BICYCLE", "ON_FOOT", "STILL", "WALKING", "RUNNING") Wait For (Starter.client.RequestTransitionUpdates(activities)) Complete (Success As Boolean) Log(Success)
Erel B4X founder Staff member Licensed User Longtime User Aug 2, 2020 #5 Erel said: What do you see in the logs? Click to expand... Upvote 0