System Settings for Tasker

by David P. White


仕事効率化

1.99 usd



Monitor settings data changes and alert Tasker so it can take action as a result

続きを読みます

Due to constant Google changes this app will not be updated.SSFT gives Tasker users access to Android Settings information but does not enable the changing of Android settings.SSFT does nothing on its own. It is an optional companion to Tasker. If you try to execute this app when Tasker is not installed or enabled, you will see an error message. You must enable Taskers Allow External Access setting located on the Misc tab. Fix the issue, re-start this app, and enable this app via its menu to proceed.Most of what is described below is case-sensitive. Be exactly correct in what you are entering.There are three, broad sets of Setting data and SSFT searches for information in the following order: System Secure Global (Android 4.2+)Please understand that you must use a settings constant string value with SSFT. For example, the System setting known as BLUETOOTH_ON has a constant string bluetooth_on and this is the name to use with SSFT.So lets get started. As a simple test case to get started, we will use the bluetooth_on setting since it is readily available on most devices.On the SSFT main page, choose Add from the menu. Enter bluetooth_on for name and my_bluetooth_on for nickname. Press OK. The resulting entry in the list means that SSFT will monitor for changes to the data for the setting bluetooth_on and will notify Tasker when its value changes.Assuming the bluetooth radio is turned ON when you performed the Add, SSFT will store a value of 1 for bluetooth_on. 1 means the bluetooth radio is on. 0 means the bluetooth radio is off.So if you now turn bluetooth off, the setting bluetooth_on changes to 0 and SSFT sends an intent message to Tasker. You need a Tasker profile that receives the intent. The action for the Intent Received must be com.whitedavidp.systemsettingsfortasker.SETTING_UPDATE. With this, Tasker can take note of the changed setting.When SSFT sends an intent, it includes two pieces of extra data: nick_name and current_value. In this case, the value for nick_name is my_bluetooth_on and current_value is the settings value when the intent was sent (in this case either 1 or 0). When processing the Intent Received, Tasker will automatically make this extra data available to your task steps as local variables %nick_name and %current_value respectively.Now associate the new Tasker profile with a task. To make this easy, we will just make Tasker show an alert whenever a SSFT intent is received. Add a step to the task (Alert->Popup). In the popup tasks Title put %nick_name. In the Text put %current_value. Once saved, Tasker should display a popup showing my_bluetooth_on as the title and either a 0 or a 1 in the detail text depending upon the current state of the the bluetooth radio.If you configure SSFT to monitor additional settings by adding them to the main page, you will get a popup displayed whenever any one of the monitored settings changes. Try extending the list by adding wifi_on. Android uses this setting to track the state of the wifi radio. When off, the value will be 0. When on, the value will be non-zero. Follow the same pattern as above for bluetooth_on but change the nickname to my_wifi_on. Once complete, you will see a popup every time either the bluetooth or wifi radios change their state.Obviously, this simple test case is of little value to anyone. But it demonstrates the basics. You can use the SSFT intent messages (and the values they contain) within Tasker in any matter you choose. But this all happens inside of Tasker, not in SSFT. So most of this up to you based on your needs.For more details, see the help page in the app. Please use the email link on this page or the apps About box for questions. Do not use reviews for this as they are too limited.Updated help file: when sending intents to control this app on Android 8+ you must specify the Target Package = com.whitedavidp.systemsettingsfortasker (doing on on lower Android versions is not required but does no harm).