-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring Development Environment
wnayes edited this page Dec 19, 2012
·
5 revisions
- Install any version of Git for Windows if not previously installed.
- Run the Git Bash once installation is completed.
- Navigate to a folder where you want to store the project files. I would choose either
C:\orC:\Users\user\Documents\. Note that in the Git Bash directories inC:\must be accessed with forward slashes, for examplecd /c/Users/user/Documents. -
git clone https://github.com/wnayes/app-challenge-android.git
The repository should now be in aapp-challenge-androidfolder.
- Either install the Android SDK and Eclipse manually or grab the ADT Bundle.
- Library files are not included in the repository, but need to be added to build. Copy the file
<sdk-folder>/extras/android/support/v4/android-support-v4.jarintorepository\app\libs\. The SDK folder is the location of the Android SDK downloaded previously. - You may have to also add it as an "External JAR" from the Libraries -> Java Build Path configuration.
- Import the project into Eclipse. From
File -> Import, selectExisting Android Code into Workspace. The root folder is theappdirectory.
There are a few extra steps to prevent the application from crashing with Maps in an Activity.
- You will need to get a Google Maps API Key for yourselves. One tricky part was finding the
keytoolapplication; it was in theC:\Program Files\Java\jdk_*\bin\for me. You will need to get the SHA-1 hash output and create a new Android key from the Google API Console. - We will each have separate keys (not committed to the repository). So to configure this, create a
maps_key.xmlfile inapp\res\values. In this file, write:
`