Updated for API 18

targetSdkVersion changed to 18. Pre activity flow alterations.