Which I read, and didn't understand as "this code is written within an activity". I guess it's fine...  but have the activity class declaration wouldn't hurt that much.