Sunday, July 20, 2014

USB Debugging a Nexus 5

It is described all over the internet, so let me repeat it here :)

To USB debug your Nexus 5, first enable USB Debugging in the Developer options.
If you don't yet have the developer options visible in Settings, then enable them like this:

Go to Settings and About Phone, then scroll all the way down to "Build Number" and then tap 7 times on the item "Build number"  (yes, weird)



Once done, in the Settings menu under the Developer options enable "USB Debugging" and connect to the PC via USB.

From a command line check if you can see the phone with "adb devices".
If none shows up, you might want to kill any running adb.exe instance from the task manager and retry.

If this still fails, open the Windows Device Manager, and look for the Nexus device right at the top under "Android devices".

If this shows an error or warning, you need to install the proper driver.
Right-click on the "faulty" android entry in the list and select "Update driver software". Point the update to the android-sdk path on your computer.
So check where you installed the Android SDK into. From the SDK path it is  under extras\google\usb_driver
(e.g.  %appdata%\..\Local\Android\android-sdk\extras\google\usb_driver)
It should find the "Android Composite ADB Interface" driver.

Once this is installed, your Nexus 5 should be visible to the debugger. Again, kill any running instance of adb.exe first, just to make sure)

If not, google is your friend :)

Friday, July 11, 2014

How sorting gets ruined.

Frequent readers - or close followers - of this blog will know, that the share feature (SEND intent) is one of my favourite features on Android.

To recap: it allows any application to share content via (or send content to) any other application, e.g. email, facebook, google+, sms/text, bluetooth, ... You name it.
All that needs to be done is for the target app to register itself for handling certain content types, and then it can be picked by the user, whenever a suitable content type needs to be sent. Android will automatically generate the list of all apps that are available for this content.

So far, so god.

Now in order to be at the top of that list, most apps "fake" and "A" into this name. But this is getting out of hand.

Let me draw your attention to exhibit A:
Exhibit A - the share menu
So this makes the alphabetical sorting totally pointless.
This has to stop.

Next app will probably register itself with an underscore....

Reminds me of my times at Sun Microsystems not too long ago. Obviously a lot of things started with S there ... Sun, Solaris, SPARC, ... but then they created lines of business called Server, Storage, Software, Services.... So even when you sorted a list alphabetically, 90% would cluster under S...

Pointless.