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):

tracefile after app closed (2 minutes)


facebook sdk active:

facebook sdk active


rxjava 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

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -