fix bugs on Android; added missing Resources file