Add support for Android IDE

Exported from Eclipse plus some minor changes