Changed the settings activity to a fragment to avoid deprecated methods
and to support new android versions. The new version is set to API 11 or
above (In other words any android with 3.0 or higher).