So I am writing this post mostly to help people get up to speed who like myself, had never programmed Android before and need to set up their Nexus 7 device.

Through a simple google search you probably end up at the Using Hardware Devices page on the Android site.  The instructions here are pretty straight forward but I wanted to include a few gotchas in my guide.

  1. Make your application debuggable by adding android:debuggable="true" to the <application> element in the AndroidManifest.xml file. If you are using Eclipse you can skip this step.
  2. On your Nexus 7 open the Settings menu and scroll down to About tablet. Once you are in that menu if you scroll down to the bottom you will see a row which says Build number. Tap Build number 7 times and you will unlock Settings->Developer Options.
  3. Now that Developer options have been unlocked (this can be found in the System section of Settings), you can navigate to that menu.
  4. Set USB debugging to true. I also set Stay awake to true although you don’t need this.
  5. This next step is where I ran into a wall.  Go to Settings->Storage.  On this menu there is a small button in the top right consisting of three small squares.  Click this and then click USB computer connection.  You must select Camera (PTP).  I could not connect to the tablet when it was in Media device (NTP) mode.
  6. Now that this is all finished you need to install a driver for your Nexus 7.  In my case I wasn’t sure whether I needed the Google drivers or the Asus drivers.  The answer is the latter which can be found at the Asus support site.
  7. Finally install the driver.  Follow the directions here.

After all that I could test the “Hello World” app on my tablet.  Now on to actually programming my app…

3 thoughts on “Testing Android apps on your Nexus 7

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>