[RELEASE] AutoWidget - Let your widgets work for you!
Wink 
(2022-02-22, 01:30)drinfernoo Wrote: I don't really know of a way to do so (beyond constantly listening for a particular button press, which would have a severe impact on performance. I'm also not sure that this feature would offer any real utility of value for many, if any at all, users.

EDIT: @shaktoo I've decided that there is a relatively easy way to handle this. If you could please test the latest devrepo release (0.0.1524), it will allow you to call a path that will automatically refresh the widget you're focusing. You can then use that path in a keymap, like so:

xml:

<?xml version="1.0" encoding="UTF-8"?>
<keymap>
    <home>
        <keyboard>
            <key id="61536">RunPlugin(plugin://plugin.program.autowidget/?mode=refresh&id=auto)</key>
        </keyboard>
    </home>
</keymap>

This is the one I used during testing, and using 61536, I was able to easily refresh widgets by pressing ` on my keyboard while on the home screen. You'll probably need to map some other button code if you're using a remote.

For what it's worth the "magic" here is the id=auto flag, which will force AW to try and read the widget ID from the widget, similarly to how the "Refresh Widget" context menu action works currently.

EDIT 2: I'm really not sure why the XML is so spaced out like that...
Amazing... Cannot wait to test this ... I am at work until late .. cheers from one Dr to another!!   Big Grin
Reply


Messages In This Thread
Suggestion for next version - by justin150 - 2021-03-08, 13:37
Android Shortcuts - by JSAKelley - 2022-01-12, 05:33
RE: Android Shortcuts - by jdig4240 - 2022-01-12, 07:11
RE: Android Shortcuts - by JSAKelley - 2022-01-12, 16:10
RE: Android Shortcuts - by jdig4240 - 2022-01-12, 16:51
RE: Android Shortcuts - by JSAKelley - 2022-01-12, 23:19
RE: [RELEASE] AutoWidget - Let your widgets work for you! - by shaktoo - 2022-02-22, 11:15
Logout Mark Read Team Forum Stats Members Help
[RELEASE] AutoWidget - Let your widgets work for you!1