Modified to complie against newer version of Android Support v4.