Call requires API level 17 (current min is 4): android.provider.Settings.Global#getInt
It tells you that your code contains a method that was added in API 17 so the compiler is complaining. Now because you're doing your checks in regards of what API is on the phone, just add this above your method signature, so it looks something like this:
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
public void buton2(View view) throws SettingNotFoundException