modified amandroid.scala