Hi,
I am new to andriod programming and infact pretty new to Tasker.
Tasker is the only reason I moved to Andriod from IOS.
I am playing around toast example of Tasker plugin.
How can I achieve variable replacement in toast configuration.
That is, if I insert %DAYW in configuration and then run the action, it should replace it to current day.
Flash action is able to replace global variable to its respective value. I wanted to achieve the same .
Below code snippet doesn't work for me
final Bundle resultBundle = PluginBundleManager.generateBundle(getApplicationContext(), message);
resultIntent.putExtra(com.twofortyfouram.locale.Intent.EXTRA_BUNDLE, resultBundle);
/*
* The blurb is concise status text to be displayed in the host's UI.
*/
final String blurb = generateBlurb(getApplicationContext(), message);
if ( TaskerPlugin.Setting.hostSupportsOnFireVariableReplacement( this ) )
TaskerPlugin.Setting.setVariableReplaceKeys( resultBundle,
new String [] { message } );
resultIntent.putExtra(com.twofortyfouram.locale.Intent.EXTRA_STRING_BLURB, blurb);
setResult(RESULT_OK, resultIntent);
Pardon my ignorance, I am pretty mush new to andriod programming and Tasker.
Any help would be really appreciated .
Thanks
Abhi