Add getline on android

Android does not contain getline function. To overcome this trouble, an
implementation of getline is added. Appropriate changes are made in
jni/Android.mk and linux.c
The getline code is taken directly from android git repo.

Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>