Menu

[Development]

Martin Atzmueller Katy Hilgenberg

Information for Developers


Getting Started

This section describes the necessary system preparations for SDCF development, as well as the requirements for command-line builds with Ant or the development with Eclipse.


System Preparations

  • Java JDK 6 Installation

    • You can either install the Java JDK 6 from Oracle or the OpenJDK 6 for Linux distributions (sudo apt-get install openjdk-6-jre).
  • Android-SDK Installation

  • Platform Tools & Package Installation

  • System Path Updates for Ant Builds

    • Add the ''<sdk-install-dir>/tools'' and the ''<sdk-install-dir>/platform-tools'' directories to the PATH environment variable of your System. Where <sdk-install-dir> refers to the installation directory of the Android-SDK. In case, check that the tools are included in the PATH, e.g., by "tr \0 \n < /proc/pidof eclipse/environ | grep ^PATH".
  • Graphviz Installation for an Ant-Based Javadoc Creation (Optional)

    • To be able to execute the ''ant/javadoc.xml'' script to build an HTML documentation with UML diagrams, you have to install Graphviz for the automatic post-processing of the UMLGraph dot files. (For further information check the README file in the SDCFrameworkLib project).

Command-Line Builds with Ant

To proper build the SDCF projects from command line, Ant 1.8 or higher must be installed.
Check-out the Projects from the SVN repositiory.

  • Setup the Projects for Ant Builds

    • Switch to each project directory (e.g. SDCFrameworkLib) and execute the related setup command:

      • SDCFrameworkLib: ''android update lib-project --path . --target android-8'',
      • SDCFramework, SDCFrameworkDemo: ''android update project --path . --target android-8'',
      • SDCFrameworkTest: ''android update test-project --main ../SDCFramework --path .''.
  • Ant Usage Examples

    • Build and install a debug version of the the SDCFramework Application:

      • Switch to the SDCFramework project directory and execute the command ''ant clean debug install''.
    • Build the Javadoc Dcumentation for the library:

      • Switch to the SDCFrameworkLib project directory and execute the command ''ant javadoc''.
      • The HTML-documentation is stored in a subdirectory of the library project: "SDCFrameworkLib/doc/javadoc".
    • Build and run the tests:

      • Switch to the SDCFrameworkTest project directory and execute the command ''ant clean debug install test uninstall''.
    • For further information about Ant builds of Android projects check the Android developer page.


Eclipse Development

The framework projects are configured and maintained for Eclipse Galileo, Eclipse Helios and Eclipse Indigo with an installed ADT Plugin Versions 21.0 or lower (Success on building and running the projects has also been reported with the ADT Bundle).


Possible Pitfalls & Solutions

Java-7 / Compliance Level

  • If you use Java SDK 7 instead of 6, you may get the following error: ''Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead ...''.

  • To fix it do the following:

    • right-click on the project and select "Android Tools->Fix Project Properties".
    • right-click on the project and select "Properties->Java Compiler" and select 1.6 in the "Compiler compliance settings" select box.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.