refs #235 compatible to android >=2.3