modified Amandroid.scala