android - RxJava and unmonitored download -


how handle in rxjava (i having hard time learning library).

i have url want download @ start of android app , want start if no 1 subscribing it. download may take amount of time possible user end on page relies on download of url, want activity/fragment subscribe outstanding observable.

i plan on tracking outstanding observables simple

map<string, observable> 

so observers (activities/fragments) can know if url/string isn't in map stuff done. thinking of using publishsubject, according talk heard suggested not use subject's because should learn observable first before "shortcuts".

here example of asynchronous download performed once: with asyncsubject , concurrenthashmap


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -