Skip to content

Windows Development Environment

jorgesilva edited this page Mar 22, 2013 · 1 revision

WARNING: These instructions are not officially supported and are likely to be outdated.

If you have managed to set up the development environment for Tecla Access on Windows, please consider updating the instructions below, otherwise refer to the officially supported Linux instructions available from: https://github.com/idrc/tecla-as/wiki/Contributing-Code/

  1. Fork and clone the TeclaAccessJB project.

  2. Fork and clone the InputMethodCommon (https://github.com/idrc/InputMethodCommon) project.

  3. Remove \java\src\com\android\inputmethodcomm and \java\jni if they exist

  4. Set up a linked folder to the source code in InputMethodCommon

    a. Right click on src and choose New => Folder

    b. Type "internal" for Folder Name

    c. Choose Advanced => Link to alternative location, and create a variable with name "LINKEDFOLDER_IMC" and set the variable to the location of java in InputMethodCommon

  5. Set up a linked folder to jni

    a. Right click the SettingsActivity and choose New => Folder

    b. Type "jni" for Folder Name

    c. Choose Advanced => Link to alternative location, and create a variable with name "LINKEDFOLDER_JNI" and set the variable to \native\jni

  6. Set up NDK

    a. Download NDK and unzip the files

    b. In Eclipse, set up the NDK build path

  7. Set up Support library: in Eclipse > Android Tools > Add Support Library...

  8. Resolve package path problems (path to InputMethodCommon classes may be slightly different)

  9. For the com.android.inputmethod.latin.spellcheck.SpellCheckerProximityInfo class, set encoding to UTF-8

    a. In Eclipse, Edit => Set Encoding

    b. Choose Other: UTF-8, then Apply

  10. In project.properties, set the last line to target=android-16

Clone this wiki locally