Codes to open app all Android settings from sketchware project

So sketchware coders, today I bring a big codes collection for your awesome app. Do you got problem while making big projects? Do you want some asd codes to open android settings? 



Then you're on right post. 
Think about a situation your app requires a special permission but due to some issue your app can't ask for this permissions...... This is where the asd codes comes to open settings app directly and your app user can give permission by itself. 






So here are some asd codes to open android settings with codes in sketchware.



Moreblock

If you want to do it properly then you have to make a moreblock because this method is more useful.

Make a More block named _showSettingScreen . In this moreblock Add this code


 try
    {
        Intent intent = new Intent(_intentStr);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    }
    catch (Exception e) {
     e.printStackTrace();
}



Use this code in asd.  

You can also download this moreblock from this link

After that add a button and and use any code you want to use.


Open settings app

_showSettingScreen("android.settings.SETTINGS");


Open apn settings

_showSettingScreen("android.settings.APN_SETTINGS");


Open wifi settings

_showSettingScreen("android.settings.WIFI_SETTINGS");


Open internal storage settings

_showSettingScreen("android.settings.INTERNAL_STORAGE_SETTINGS");


Open nfc settings

_showSettingScreen("android.settings.NFC_SETTINGS");


Open wireless device settings

_showSettingScreen("android.settings.WIRELESS_SETTINGS");


Open bluetooth settings

_showSettingScreen("android.settings.BLUETOOTH_SETTINGS");


Open location source settings

_showSettingScreen("android.settings.LOCATION_SOURCE_SETTINGS");



Open data roaming settings ( only api>15 )

_showSettingScreen("android.settings.DATA_ROAMING_SETTINGS");


Security settings

_showSettingScreen("android.settings.SECURITY_SETTINGS");


Open date and time settings

_showSettingScreen("android.settings.DATE_SETTINGS");



Open sounds settings

_showSettingScreen("android.settings.SOUND_SETTINGS");


Open display settings

_showSettingScreen("android.settings.DISPLAY_SETTINGS");


Open application settings

_showSettingScreen("android.settings.APPLICATION_SETTINGS");



Open notification settings

_showSettingScreen("android.settings.NOTIFICATION_SETTINGS");



Open Battery saver settings (if available in phone)

_showSettingScreen("android.settings.BATTERY_SAVER_SETTINGS"); 


Open airplane mode settings

_showSettingScreen("android.settings.AIRPLANE_MODE_SETTINGS");


Open memory card settings

_showSettingScreen("android.settings.MEMORY_CARD_SETTINGS");



Open app manager settings

_showSettingScreen("android.settings.MANAGE_ALL_APPLICATIONS_SETTINGS");



Open user dictionary settings 

_showSettingScreen("android.settings.USER_DICTIONARY_SETTINGS");




So these are the codes for now. I'll update if I get more. If you have one or you get any error then comment below.
Previous Post Next Post