Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request:add refresh activity option #8

Open
HusniMuhammad opened this issue Oct 13, 2023 · 5 comments
Open

Feature request:add refresh activity option #8

HusniMuhammad opened this issue Oct 13, 2023 · 5 comments

Comments

@HusniMuhammad
Copy link

add option to refresh/update the widget by using am option in CLI

Demo command be like

am start de.yukigasai.obsidiantodowidget/.refreshwidget

Thanks 馃憤

@YukiGasai
Copy link
Owner

Hi,
can you elaborate on this?
What command line are you using?
How can I allow you to run commands.
This looks very weird to me.
Could you instead maybe send a Broadcast so the TodoWidgetReceiver can update the widget?

        <receiver
            android:name=".TodoWidgetReceiver"
            android:exported="true">
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
                <action android:name="de.yukigasai.obsidiantodowidget.ACTION_UPDATE_CONFIG" />
                <action android:name="de.yukigasai.obsidiantodowidget.ACTION_END_NOTIFICATION_CHECK" />
                <action android:name="de.yukigasai.obsidiantodowidget.ACTION_START_NOTIFICATION" />
            </intent-filter>
            <meta-data
                android:name="android.appwidget.provider"
                android:resource="@xml/todo_widget_info" />
        </receiver>

@HusniMuhammad
Copy link
Author

HusniMuhammad commented Oct 30, 2023

Sorry for late reply .. I don't receive any notfications from email, but I'm manually check them, then I found you response

IMG-20231030-WA0000

I don't have a knowledge about Android app development, but I want to imitate refresh button in CLI Using termux

@HusniMuhammad
Copy link
Author

Screenshot_20231030-072045

@HusniMuhammad
Copy link
Author

HusniMuhammad commented Oct 30, 2023

How can i trigger intent?

@HusniMuhammad
Copy link
Author

am start de.yukigasai.obsidiantodowidget/.TodoWidgetReceiver

Screenshot_20231030-073659

Screenshot_20231030-073707

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants