Profile

Cover photo
Daniel Lew
2,412 followers|878,924 views
AboutPostsPhotosYouTube

Stream

Daniel Lew

Shared publicly  - 
 
I often see confusion around Android View constructors. Why are there four of them? What does each parameter do? Which constructors do I need to implement? tl;dr If you just want quick, practical advice, here's a few good guidelines: Use View(Context) for creating Views in code. Override View(
30
26
Add a comment...

Daniel Lew

Shared publicly  - 
 
Some thoughts on multicasting in RxJava.
18
4
Add a comment...

Daniel Lew

Shared publicly  - 
 
Why I think that unlimited vacation policies are inherently unfair.
Unlimited vacation policies are often painted as a dream benefit that only happens in cushy tech jobs, but I think they're inherently unfair because they're entirely subjective. It's easy to prove that unlimited vacation policies are anything but: no company would allow you to take a truly unlimited vacation. You
11
1
Daniel Lew's profile photoJ.J. Valenzuela's profile photoDouglas Drumond's profile photoMartin Omander's profile photo
5 comments
 
I agree with +Daniel Lew. I use all my vacation days every year. I would feel very hesitant about using more than half as many if the policy was "unlimited vacation".
Add a comment...

Daniel Lew

Shared publicly  - 
 
Going back to my blogging roots: obscure corner cases no one else will ever run into.
24
8
Peter Aldous's profile photoRussell Collins's profile photo
13 comments
 
That generally goes into the about or privacy notice section. The right way to go about it is to anonymize the data so that it can only ever be "private".
Add a comment...

Daniel Lew

Shared publicly  - 
 
Some throwback Thursday fun: a look back at my first Android app, six years later.
23
1
Wolfram Rittmeyer's profile photoMike Wolfson's profile photoGiampaolo Frello's profile photo
3 comments
 
Hey, I bought this app!
Add a comment...

Daniel Lew

Shared publicly  - 
 
Suppose you've got an Android application with a bunch of tests. Some of them are unit tests (located in src/test). The rest are instrumentation tests (located in src/androidTest). Here's the dilemma: you've got some utility code that you'd...
25
18
Add a comment...
Have him in circles
2,412 people
Akbar Sha Ebrahim (ஷா)'s profile photo
Chris Eickemeyer's profile photo
Hoàng Minh's profile photo
Tony Tang's profile photo
毛瑞斌's profile photo
César Díez's profile photo
Ron Shapiro's profile photo
vee sivee's profile photo
Markus Hintersteiner's profile photo

Daniel Lew

Shared publicly  - 
 
 
This week +Kaushik Gopal talks to +Daniel Lew about translating your application into different languages on the Fragmented Podcast. Listen here: https://simplecast.com/s/1bef7ab9 #gde #android #techtalk
Friend of the show Dan Lew makes a return! In this show Kaushik talks to Dan about translating an app for other languages. Show notes at http://fragmentedpodcast.com/episodes/49/
View original post
6
Add a comment...

Daniel Lew

Shared publicly  - 
 
I've documented my process, since a few people were interested.
A few people have asked me recently about writing talks, so I thought I'd document my process. I only write technical talks, so keep in mind that some of this advice may not apply for your talk. Goals I have two goals in mind for any talk: Convey information. Keep
38
8
Akshay Dave's profile photo
 
Some very cool tips! thanks for sharing!
Add a comment...

Daniel Lew

Shared publicly  - 
 
They are some of the more complex operators in RxJava.
repeatWhen and retryWhen are fairly baffling at first glance. For starters, they are serious contenders for "most confusing marble diagrams": They're useful operators: they allow you to conditionally resubscribe to Observables that have terminated. I recently studied how they worked...
20
11
Daniel Lew's profile photoWolfram Rittmeyer's profile photoDavid Bilík's profile photo
7 comments
 
Hi, how would you solve generally oauth2 access token refreshing when HTTP status code 401 happens? I've been doing this on OkHttp interceptor level but i want to push it to Rx part of my code that handles all requests.

EDIT: I`ve read your article and here is my solution based on that: http://pastebin.com/JvCnccBa

It looks like its working but i`d like to know if there is some drawback with this solution. Thanks
Add a comment...

Daniel Lew

Shared publicly  - 
 
Some notes on error handling in RxJava.
RxJava makes error handling a snap. Just use onError, right? That's fine and dandy if you're the subscriber, but what about exceptions that occur inside your operators? How do you ensure that an Exception in, say, flatMap() gets passed along...
31
15
Add a comment...

Daniel Lew

Shared publicly  - 
 
PSA: If you're using play-services-measurement 8.3.0, make sure you have applicationId defined in build.gradle.

Otherwise you (and anyone else who doesn't have it) will have to battle it out for ContentProvider namespaces. Only the first installer wins!

(Note that play-services-measurement is a dependency of play-services-gcm, so that increases the likelihood you have it.)
Android Open Source Project - Issue Tracker
29
6
Ramon Sadornil Rivera's profile photo
 
Thanks for spreading the word.
I was "unlucky" enough to find out the problem and report that bug before going live.
I'm afraid that not so many developers will realize they've this issue because you must have another app installed on your device using 8.3. I was lucky enough to have the Norwegian airlines app installed which had it.
Hopefully +Tor Norbye's team can take a look at it soon.
Add a comment...

Daniel Lew

Shared publicly  - 
 
If you're free tonight and live near Minneapolis I'll be giving my talk about Android styles & themes.
14
2
Michael Lustig's profile photo
 
I wish I were in the area. You give great presentations +Daniel Lew​
Add a comment...
People
Have him in circles
2,412 people
Akbar Sha Ebrahim (ஷா)'s profile photo
Chris Eickemeyer's profile photo
Hoàng Minh's profile photo
Tony Tang's profile photo
毛瑞斌's profile photo
César Díez's profile photo
Ron Shapiro's profile photo
vee sivee's profile photo
Markus Hintersteiner's profile photo
Links
YouTube
Links
Basic Information
Gender
Male
Apps with Google+ Sign-in
  • Downwell
  • You Must Build A Boat