Added Gate Result code and layout
Added support for Android API Level 10