attributes for android

fixes #226 & #229