In my app i am calling inbuilt WiFi setting form Preference.xml file.
I am using this code to call the in built WiFi setting
<Preference
android:key="wi5"
android:summary="click this for wi5 setting"
<intent android:action="android.settings.WIRELESS_SETTINGS" />
</Preference>
when i am in WiFi setting and the WiFi setting go to pause state. i want to close the setting screen. How to achieve this