I’ve been doing Android demo meetings for a while by pointing a webcam at a phone and hoping the automatic exposure doesn’t go wild half way through, always slightly envious of the iOS simulator that actually almost works, and the wide support for casting or airplay-ing an iPhone screen to your laptop / projector screen (which can then of course be shared very easily via Skype).
Ever since the “cast screen” settings appeared in Android 4.4 Kitkat I’ve thought that it must be possible to send your screen to a mac, but apparently that only works with a Chromecast, which of course my Mac is not, and nor can it pretend to be.
Well, this evening I have discovered the solution to my problem:
You’ll run into a problem if your phone isn’t Lollipop (or a rooted KitKat), but if that’s the case, maybe buy yourself a nice cheap Moto E for presentations, or get your boss to.
Update 25th August 2015: There’s also another way to this, over USB so it’s more reliable. Download the Vysor app in Chrome, and connect your device.
At the last GDG Brighton I spoke on the difference between designing for iOS and Android.
Here are the slides and a recording of the talk:
For those that remember, it’s an updated version of the talk I did a few years ago at Brighton Digital Festival.
If you’re on a Mac and have been finding that Chrome’s two finger back and forward gestures keep triggering at really inappropriate times (for years), you can disable them without disabling for every app on your Mac.
Just close Chrome, open up Terminal, copy the command below, and press enter!
Just got caught out by this little mistake for a few minutes. If you call the DbxAccountManager startLink method in your onCreate, onStart or onResume methods for your Activity then the your app will crash after you’ve authenticated. Solution: Don’t try and link before the activity is fully running. See the Activity API reference for details about the activity lifecycle.
Update: Turns out this has nothing to do with when you start the authentication. After an email exchange with a developer at Dropbox (they contacted me!) we deduced that this was due to a low memory situation, and it just happened by chance that waiting until the activity had fully started fixed the issue. Apparently a fix will be coming for this in a future update…
Here’s the error from the logcat:
I’ve had my Xperia U for about 5 months now. It’s an interesting phone, it’s a nice shape but Sony have done bad things to Android and it frequently plays a fun game where it goes so slow that it doesn’t wake up in time for me to answer a phone call before it goes to voicemail… Anyway, one of its less desirable features is the silly light bar gimmick across the bottom of the device, all it does it use up battery and make the phone painful to use in the dark.
But! Today, I stumbled upon a way to (mostly) disable it (apart from in the gallery/album app). Install the following app from the Google Play Store:
Google Play Store: Illumination Control
And then in the app’s settings, go to “Set Theme Color” and then slide all the sliders all the way to the left, you might have to wiggle them a bit first if they are already in that position.
It’s that easy! Now you can use your phone in the dark without being blinded!