Feeds:
Posts
Comments

Posts Tagged ‘eclipse’

I’ve been setting up for Android development with PhoneGap on my PC work computer.

The instruction I have been follwoing are http://docs.phonegap.com/en/2.5.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android

It’s not a simple plug and play setup, definitely not for the tech-faint hearted.

Following are some screen shots of my journey.

Ended up being about a 2hour process with some good, enjoying challenges that needed to be solved.

Setting up for Android development with PhoneGap

The instructions from the PhoneGap Android Getting Started Guide, (the link is above).

Setting up for Android development with PhoneGap

Adding the JAVA_HOME and ANT_HOME path variables to the system variables in Windows 7. I had to re-boot for the path variables to work.

Setting up for Android development with PhoneGap

Woo hoo! Java and Ant working! Use ‘ant -version’ to test if ANT is working else you’ll get a ‘build.xml file missing’ error message, this is ok for now. I had to download JDK from the Oracle website. I only had JRE installed. I used the JDK version 1.6.0_43.

Setting up for Android development with PhoneGap

Eclipse installed and running with Android Developer Tools plugin installed and also running ok. This install came with the ADK bundle file. No need to install seperately. But the PhoneGap files need to be downloaded, unzipped and saved to a location on your choice. Then you need to use the ‘create’ command from a command line prompt to create the initial PhoneGap project. (Shift-right click on Windows Explorer to open a command prompt already ‘cd’ to that location).

Setting up for Android development with PhoneGap

Running the Android SDK Manager to install the Intel x86 Emulator Accelerator (HAXM).

Setting up for Android development with PhoneGap

Adding an Android virtual device. In this case I have added an HTC Desire which is the current physical test device we have in the team.

Setting up for Android development with PhoneGap

Woo hoo! The Android virtual device is running ok. Took a while to load though, about 60 sec.

Setting up for Android development with PhoneGap

Loading some of the existing project files that are from the team SVN code repository into Eclipse.

Setting up for Android development with PhoneGap

The Android virtual device with the project loaded.

Setting up for Android development with PhoneGap

The project running?

The next steps are,

  • to load all the source files and test compile to emulator and to physical device
  • research on video playback (I’ll need to understand and define the problem first)
  • lower priority, but also setup on my MacBook Air
Advertisements

Read Full Post »