Pages

Friday, November 8, 2013

Adventuring in the Android Word



My son just got his Nexus 7 he won when I buy him a  kit kat waffer some weeks ago. He is happy, I am happy. Not only for him but also because I've wanted for some time to get me involved in the Android ecosystem and this is a perfect time for that. While he plays GTA I will try to do something with Eclipse, Android and the Nexus 7.

Because Eclipse did not see the device at first  and I had to play around for a while to make it work, I will describe what I did in a step by step fashion:

  1. Make sure that Eclipse is closed.
  2. Go to Control Panel->System->Device Manager 
  3. Device shows with a yellow circle next to it.
  4. Right click on device and install driver manually. Point the driver location to wherever you install the <Eclipse/ADT/sdk bundle folder>/extras/google/usb_driver
  5. It installs the Google driver and in my case successfully.
  6. Go to the Nexus 7 and enable USB debugging.  Unusual trick here:  go to settings, scroll down to about table and tap 7, yes 7 times on Build Number (or Kernel version, can't be sure now) it will enable the developer mode.


If at this point you issue the command "adb devices", from the command prompt, you will see a new device, but it will say it is unauthorized.

D:\Android_development\adt-bundle-windows-x86-20130917\sdk\platform-tools>adb devices
List of devices attached
049a060f        unauthorized


 In the device you will see a message asking for authorization from the PC. Click OK, and your device is ready.
 D:\Android_development\adt-bundle-windows-x86-20130917\sdk\platform-tools>adb devices
List of devices attached
049a060f        device

Now I will go back to Eclipse and see what happens. By the way I've found some tutorials from a guy named Derek Banas about Android, what an excellent instructor.  I'll try to keep a log of my progress.