Tips for developers

How to download the source code?

The code is open-source, GPLv3. It is in a Bazaar repository hosted on Launchpad. Check out the source code with the command:

bzr branch lp:senspodapp

How to setup the Android development environment?

Simply go over the instructions on the Android SDK page and the pages it links to. Do not try to take shortcuts here. The whole process won’t take longer than an hour.

How to build and run the CitySenspod app?

Check out the SenspodAdd project to your Eclipse workspace directory, for example:

cd ~/workspace
bzr branch lp:senspodapp

Start Eclipse, and select File / Import… / Existing Projects into Workspace

You might see this error: “Android requires .class compatibility set to 5.0. Please fix project properties.”

In that case, go to project properties, go to Java Compiler, and set compiler compliance level to 1.5.

You might see this error: “the project cannot be built until build path errors are resolved”

This is a nonsensical error that should not be there. The easiest way to make it go away is to remove Referenced Libraries/backport-android-bluetooth2.jar and then add it back.

IF, an errors is really nonsensical, you can usually go to the Problems tab and delete the error and then rebuild should work.

Leave a Reply

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