android - RxJava and facebook sdk threads trigger periodic cpu load in the background -
i observed periodic cpu load after app closed home button. load caused threads part of facebook android sdk , rxjava.
overview (trace period of 2 minutes after app closed home button):
facebook sdk active:
rxjava active:
i know these threads active < 1ms. have feeling waking ever 15 seconds (facebook) / 70 seconds (rxjava) bad battery life. on average leads waking every 10 seconds. observed behavior continues till app killed system.
is behavior problematic , reduce battery life of device or shouldn't cause problems?
facebook:
facebooksdk.sdkinitialize(this); // application.oncreate appeventslogger.activateapp(this, getstring(r.string.app_id)); // activity.onresume appeventslogger.deactivateapp(this, getstring(r.string.app_id)); // onpause
rxjava:
.subscribeon(schedulers.computation()) .observeon(androidschedulers.mainthread())
versions:
- facebook-android-sdk:4.9.0
- rxjava:1.1.0
- rxandroid:1.1.0
Comments
Post a Comment