Aktywne Wpisy

thorgoth +102
Treść przeznaczona dla osób powyżej 18 roku życia...

UzytkownikHejto +269
Treść przeznaczona dla osób powyżej 18 roku życia...
Skopiuj link
Skopiuj link

Regulamin
Reklama
Kontakt
O nas
FAQ
Osiągnięcia
Ranking
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
https://developer.android.com/about/versions/pie/android-9.0-changes-all
https://stackoverflow.com/questions/55044970/sensor-event-listener-not-working-in-background-service
W jaki sposob dziala takie Samsung Health wiec?
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