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+.

May
17
comment Unable to dismiss/hide alarm icon on Android 5.0 Lollipop
Have you tried using the same flags for both creating & cancelling? Currently you're creating with a 0 flag and cancelling with FLAG_NO_CREATE.
May
16
comment Unable to dismiss/hide alarm icon on Android 5.0 Lollipop
This looks correct and sounds like a bug. Have you tested on multiple 5.x devices? The docs say "The system may choose to display information about this alarm to the user" - which indicates to me it might be an implementation detail for the hardware manufacturer.
May
12
awarded Supporter
May
7
comment Using RxJava to process varying object stream
What does your source look like? Just JSON returned from the server? You might be better not using Rx here and mapping that to a POJO and dealing with it in a traditional way.
Apr
22
comment ReactiveX (Rx) - Detecting Long Press Events
It appears that RxPy is the only implementation with takeWithTime, and the ReactiveX site doesn't have any docs on it yet.
Apr
21
revised How to use appendFormat to format a string in Swift?
added 5 characters in body
Apr
21
comment How to use appendFormat to format a string in Swift?
This works well too, added an example using this method to my answer. It's much more obvious as well (where as the cstring conversion will need a comment to explain what's going on).
Apr
21
revised How to use appendFormat to format a string in Swift?
added 238 characters in body
Apr
21
revised How to use appendFormat to format a string in Swift?
edited title
Apr
21
answered How to use appendFormat to format a string in Swift?
Apr
21
accepted CoreData NSFetchRequest with 'count' expression property is returning a NSManagedObjectID instead of an integer count
Apr
21
comment How to use appendFormat to format a string in Swift?
I can reproduce this in a Playground, the random characters change every time the code is run. Using str += String(format:"%-12s", "Hello"), and variants.
Apr
21
comment How to use appendFormat to format a string in Swift?
This will simply append 12 spaces to the end of the string, rather than padding the string up to a minimum of 12 characters.
Apr
20
revised Type mismatch on subscription with RxJava
Updated the title for future searchers to refer to the actual issue
Apr
19
answered How to zip 2 observables with different length in RxJava
Apr
18
awarded Constituent
Apr
18
answered Picasso Only Loading 5 Images until re-using ones in cache
Apr
18
revised Add space to the end of the recycerview
added 376 characters in body
Apr
18
answered Add space to the end of the recycerview
Apr
16
comment Manage identical requests with RxJava
Re-reading the question again, it's tough to say - this will work if you build the observable for the image and then keep a reference to that (as in your example), knowing you'll always have the same URL. If the URL changes, then your Observable changes, and this falls apart - you have to cache references to Observables for different URLs, each of which are caching images themselves... Eek.
1 2 3 4 5