Adam S

Waterloo, Canada

speakman.net.nz

Age: 27

Android Developer from New Zealand, recently moved to Waterloo in Ontario.

You can find me on Twitter at @adamsnz or Google+.

2d
comment RxJava Chained Observables and NetworkMainThreadException
I felt the same way (and faced the same problems), it's a common misunderstanding when starting out with Rx. Once you've spent a bit of time with Rx though, they do make sense. Just takes time to wrap your head around it! Hope everything is clearer now :)
2d
comment RxJava Chained Observables and NetworkMainThreadException
I've updated the answer with some examples - it's really up to you where you put them! I'm not sure what you mean about a third one, though?
2d
revised RxJava Chained Observables and NetworkMainThreadException
added 867 characters in body
2d
answered RxJava Chained Observables and NetworkMainThreadException
Jul
1
awarded Enlightened
Jul
1
awarded Nice Answer
Jun
30
comment Create the equivalent of a ConnectableSubject in RxJava
A ReplaySubject is close to what you're looking for, but appears to cache input indefinitely for all future subscribers (rather than the first subscriber). There are some options though - createWithSize(int size) allows you to specify a max cache size.
Jun
29
comment How to Concurrently Process Lines of Text with RxJava
I just did while(!subscription.isUnsubscribed()) { Thread.sleep(100); } in my test code. Probably not the best way to do that.
Jun
27
answered How to Concurrently Process Lines of Text with RxJava
Jun
21
comment How do I run frame-by-frame animation with scrolling background?
possible duplicate of How do I add a scrolling background to Frame-by-Frame Animation?
Jun
18
comment How to cleanup on Observable created with the .create(OnSubscribe) method
Yeah, that is a bit gross.
Jun
18
comment How to cleanup on Observable created with the .create(OnSubscribe) method
There are examples using this method on the RxJava wiki, under "Creating an Observable via the create( ) method".
Jun
18
answered How to cleanup on Observable created with the .create(OnSubscribe) method
Jun
15
comment How can i change a Field in a List of Objects with RXJava/Android
In your question edit you ask for an Observable<List<Person>> back - you can get that by tacking a toList() onto the end of any of these examples.
Jun
13
comment groupBy operator, items from different groups interleaved
Yes! That's right :)
Jun
13
answered RxJava - Just vs From
Jun
13
comment groupBy operator, items from different groups interleaved
Think of groupBy as a routing mechanism, so as each item is emitted from the first observable, the groupBy function routes that item to the appropriate observer (creating it if necessary). The marble diagram in the docs actually shows the timeline behaviour you're anticipating, I think, which is unfortunate (it shows the circles all coming out before the triangles).
Jun
13
comment Android studio not fetching libs for my android twitter app
Did you check the setting?
Jun
13
comment Android studio not fetching libs for my android twitter app
Also: are you using the Fabric Android Studio plugin? It sets all of this up for you and makes life really easy.
Jun
13
comment Android studio not fetching libs for my android twitter app
Are you working offline? Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle -> Offline work. Make sure that box is unticked.
1 2 3 4 5