code should function back to SDK 9
Edited for readability and correctness
Cleanup layouts
Extracted string resources