OK, so you've found some iPhone code that you want to port to Android, and you're going to post here about everything you don't understand, and that's going to be quite a lot. Please allow me to suggest that porting a major project from iPhone to Android is not a job for a Java newbie or for an Objective C newbie either.