#java #programowanie
Mam problem,chcę wyświetlić w TextView wartość która jest obliczana w Serwisie,jednakże
you cannot directly make changes in ui inside a service instead use broadcast receiver and intent filter to notify your activity/fragment and update from there
Tak
Mam problem,chcę wyświetlić w TextView wartość która jest obliczana w Serwisie,jednakże
you cannot directly make changes in ui inside a service instead use broadcast receiver and intent filter to notify your activity/fragment and update from there
Tak
























Mam pytanie,zajalem sie pisaniem aplikacji ktora zbiera kroki dzialajac jako Services. Poniewaz od Androida 9.0
Sensors that use the continuous reporting mode, such as accelerometers and gyroscopes, don't receive events.
Nie moge w takim razie zaimplementowac SensorEventListener
If your app needs to detect sensor events on devices running Android 9, use a foreground service.W dokumentacji sensorów jest też informacja
Given these restrictions, it's best to detect sensor events either when your app is in the foreground or as part of a