Yes, that's where I found it.
This is called "Stack Overflow driven development": 1) search for something in Google 2) find code on Stack Overflow 3) copy and paste. I love it, it's a great way to speed up development, with no need to strain my little brain by having to think.
Re: Sony -- not sure yet.
First, I need to borrow my nephew's Sony phone (I don't have any myself), and that won't happen until after the Olympics is over (long story).
Second, Sony specific code requires a permission. Every time an app has a new permission, Google Play makes users confirm the update, displaying the new permission (marked as such) and all the old ones.
And so every time, I get emails like "why does your app need access to the Internet, is it a virus?" and undoubtedly, some number of uninstalls and 1-star Google Play ratings.