• Latest Code...

    Programmatically Displaying the Settings of device

    Sometimes, you want to set wifi, bluetooth and others setting then from programmatically do things here in your code

    you can use the startActivity()
    method together with an Intent object. The following shows some examples:

        //---display the main Settings page---
            new Intent(Settings.ACTION_SETTINGS));
        //---display the Location access settings page---
        startActivity(new Intent(
        //---display the Wireless & networks settings page---
        startActivity(new Intent(
        //---display the Bluetooth settings page---
        startActivity(new Intent(
    Output Looks Like:

            In general, you use the predefined constant Settings.ACTION__SETTINGS.
    The full list can be found here: http://developer.android.com/reference/android/provider/Settings.html

    Happy Coding!!!

    No comments:

    Post a Comment


    Most recent Elastic Search tutorials for beginner, intermediate and advance level developer, Yubraj Pokharel, in CodingWorkspace