News for hackers. Stuff that matters.
Re:Android without the mothership by edgyswingset on Friday June 27, 2014 @08:04AM (#7953603)
Actually the way you check for Google Play services doesn't involve nulls at all, it's a status code.

And related to null-checking, I took the pervasive approach in one of my apps for fun. It's hilarious - almost 1/3 of my app is checking if something is null. Makes you wish for a switch to a language where nulls don't exist unless explicitly asked for.

Re:Android without the mothership by njs12345 on Friday June 27, 2014 @10:00PM (#7957172)
Not always. If you use maps, for instance, then calling getMap on a map fragment when Play Services isn't installed will give you back a null reference.