I was trying to run the Replica Island in the Android emulator, but I needed to setup the project correctly before I could proceed. Well, here's what I did.
Before everything else, make sure you've installed the Android SDK, Eclipse ADT, installed the relevant Android packages (install all if you're unsure), created the AVD and installed a subversion client (I'm using Subclipse).
Check out code
From trunk from http://replicaisland.googlecode.com/svn
Minimally, you will need to check out the "res" and "src" folders seperately.
Fix the xml in the "res" project.
Turns out there's some problem with apostrophes here.
This may be fixed in the future versions of the code, if so, just skip this step.
First, find "mustn't" in strings.xml in the values folder. Replace with "mustn\'t".
Second, find "I'll" in wanda.xml. Replace with "I\'ll".
Create a new Android project.
For project name, you can put anything. (I used "ReplicaIsland")
Check the "Create new project in workspace" radio button.
Check the "Use default location" checkbox. Else, specify your project location.
Select the Build Target. I checked Android 1.6.
Specify the application name as "Replica Island".
Specify the package name as "com.replica.replicaisland".
Click the "Finish" button.
Move the files to correct folders
Delete folders in the "res" in the "ReplicaIsland" project.
Copy all the folders inthe "res" folder checked out from SVN into the "res" folder in the "ReplicaIsland" project.
Copy all the Java files in the "src" folder checked out from SVN into the "com.replica.replicaisland" package in the "ReplicaIsland" project.
Replace the contents of AndroidManifest.xml
From http://replicaisland.googlecode.com/svn/trunk/AndroidManifest.xml
Finally run the project as an Android application.
And there you have it! The emulator should start up and Replica Island will start to run.
No comments:
Post a Comment