Wednesday, October 12, 2016

Accessing Settings in Android

Accessing Settings in Android


Hi folks,
Another post related to android settings.Sometime you need to access underlying phone settings ,for example suppose your android device is not connected to wireless network,it would be very useful to the user if you provide option where user can directly check his/her network connectivity without quitting existing application.below is the example of Skype android application




So here is the solution through which you can acces  Each and every settings in android
Android ships with no of Constants  in android.provider.Settings class.
for constants description take a look on  http://developer.android.com/reference/android/provider/Settings.html.


Step 1. initialize intent with one of settings action
      Intent i=new Intent(Settings.ACTION_WIRELESS_SETTINGS);

Step 2. start Activity with above intent
        startActivity(i);


or  simply
startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));

Thats all 
like wise you can use each and every settings action 

Thank you




Available link for download