Added method to get the current cursor position.
Upgraded to gradle android plugin 0.11.