You need to run the following to get the submodule subtrees into your working tree:
git submodule init git submodule update
Note that a git submodule refers to a specific revision of the submodule project.
After checking out Androkom and the required submodule (above), you can import it into Eclipse with the following steps:
If Eclipse complains about a missing required source folder "gen" and/or reports that the a file "R.java" is missing, restart Eclipse.
You should now be able to build and run Androkom by selecting the project in Package Explorer and clicking "Run".
The lattekom submodule is by default cloned from a read-only URL, which means you can't push changes directly. However, you can push changes to a different repository URL to which you have write access.
See https://git.wiki.kernel.org/index.php/GitSubmoduleTutorial for instructions on how to work with git submodules. The basic idea is that a submodule is a reference to a specific commit level in an external project. If you want to make changes in the submodule, you need to first commit it to the submodule, then update the parent project with the new commit. Example (Androkom being a clone of an androkom repository where you have write access):
karin:Androkom rasmus$ cd lattekom
karin:lattekom rasmus$ git checkout master
karin:lattekom rasmus$ git commit -am "hacked away"
karin:lattekom rasmus$ git push git@github.com:pajp/lattekom.git
karin:lattekom rasmus$ cd .. karin:Androkom rasmus$ git add lattekom karin:Androkom rasmus$ git commit -m "updated lattekom"
karin:Androkom rasmus$ git push
The 'lattekom' submodule has now been updated, and androkom has been updated to point to the new lattekom revision.
If the submodule has been updated by someone else, do git pull' and then
git submodule update' in the androkom tree.
NOTE: if you run `git submodule update', it will overwrite any changes you have made within that submodule.