Nexus 7 Tablet, First impressions.

Got my Nexus 7 tablet. Was impossible to slide it out from the box sleeve, I had the cut the sleeve to get to the box.

What was inside box, however I was most pleased with, it a fantastic tablet, a bargain for the price. I watched Transformers 3 on it and it looked great on the 1280 by 800 screen, the tablet also gave me 15 pound google play store credit. Google play store had various computer books selling for a penny so I used my Google credit to buy some of these books. The 7 inch tablet is the perfect size for reading books on the Tube and by lucky coincidence the tablet slips snuggly into my inside jacket pocket.

Google Nexus 7 Tablet

Really looking forward to receiving my pre-order for Google Nexus 7 tablet, at 7 inch with 1280 * 800 resolution, quad core NVidia Tegra 3 Cpu with 12 Core GPU and at 340g, along with the updated 4.1 Jelly Bean OS, Early techrader preview sounds positive, I think google are onto a winner. Shame that it doesn’t come with a micro-sd slot and the shipping is 2-3 weeks šŸ™

Android Development Part 2

In the previous android post, we setup the android environment and the android emulator. This example will use maven to build a android application. Download the helloworld example.

Making sure you’ve your in the helloworld folder on the command line type:

– To deploy to an emulator

mvn android:emulator-start
mvn clean install android:deploy

– Or to deploy to a usb connected android device

mvn clean install android:deploy -Dandroid.device=usb

Android Development Part 1

There a couple of android tutorials floating around using eclipse and or ant but I my preferred tools are Intellij and Maven. This how I got started on my android development..

Download the JDK and run the setup.

Download the Android SDK and install/unzip to a desired location.

Download IntelliJ version 10.5 and run the setup.

Download Maven zip File and unzip to a desired location.

Setup some environment variables on your machine.

Set JAVA_HOME environment variable to where the JDK is installed.

Set ANDROID_HOME environment variable to where you’ve installed android

Set MAVEN_HOME environment variable to where maven is located.

Update your existing PATH variable to include the following (%JAVA_HOME%\bin , %ANDROID_HOME% , %MAVEN_HOME%\binĀ  – NOTE: No bin directory for ANDROID_HOME )

Launch a CMD prompt and type android to check that it launches correctly (if not, double-check you’ve correctly setup ANDROID_HOME and updated your PATH variable correctly)

 

If all goes well, you should see the android avd and sdk manager being launched.

This tool is used to download the Android SDK platform for different versions and also to create virtual android devices with different capabilities, it allows you to test/deploy your code to the various virtual devices with different capabilities and get an idea how it will run.

Click on “Available Packages” on the left and then expand the “Android Repository” on the right and tick the SDK platforms you are interested in installing,Ā  its also good idea to install a sample package aswell – this contains sample code to help you learn how to use the different Android API (the sample code folder will be located underĀ  %ANDROID_HOME%/samples).

After you’ve installed the packages, you’ll want to create the virtual android device which is done by clicking on “Virtual Devices” on the left hand side and then click “New..” button.

Enter the name for your virtual device and from the Target select the API version (the target drop-down is populated by the SDK you’ve chosen to install in the previous step).

Well done! You now have the Android SDK installed and you’ve created a virtual device to test your code against.

In part 2 we have and example maven build for the hello world app.