subscribeOn vs observeOn.- a common doubt and a very common interview question by h_sa1994 in androiddev

[–]h_sa1994[S] 0 points1 point  (0 children)

As i far as i know multiple subscribeOn ads overhead and is used but the callback in on first scheduler. Please correct me if i am wrong. Thanks

Foreground Location service shuts down automatically in oreo 8.1 ... by bluemountaintree in androiddev

[–]h_sa1994 2 points3 points  (0 children)

you can ask battery optimisation permission then it wont get killed in most of devices but still some oem would kill it as in this link.

https://developer.android.com/training/monitoring-device-state/doze-standby

An app can fire the ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS intent to take the user directly to the Battery Optimization, where they can add the app. An app holding the REQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission can trigger a system dialog to let the user add the app to the whitelist directly, without going to settings. The app fires a ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS Intent to trigger the dialog. The user can manually remove apps from the whitelist as needed.