artyommironov / nanji

Clock widget for Android
MIT License
10 stars 3 forks source link

Would you please add another clock ComponentName? #2

Closed revuwa closed 3 years ago

revuwa commented 4 years ago

Would you add another clock app:

to your WidgetProvider.kt, please?

By the way, I saw another widget-app, which opens my alarm app onClick, while it isn't explicit specified. If you're interested, I think it's the "RC_OPEN_CLOCK" part from here: https://github.com/ashutoshgngwr/10-bitClockWidget/blob/master/10-bitClockWidget/app/src/main/java/com/github/ashutoshgngwr/tenbitclockwidget/ClockWidgetProvider.java

But I'm not sure, because I don't have adequate developing skills. Probably, it helps at least to inspire you a bit :-)

artyommironov commented 3 years ago

Thanks for letting me know of a new way. I think it's better than current hard-coded way, though it has few downsides:

But anyway, alarm and clock are usually in same app, and very few users use such old devices. I installed mentioned clock app and tried new method, but it still opens system alarm app. Did you do some additional steps to make it open non-system alarm app?

revuwa commented 3 years ago

Sorry for (too) laaate response and thanks a lot for looking into this.

Did you do some additional steps to make it open non-system alarm app?

No.

Meanwhile I switched to another clock app (https://github.com/qw123wh/Aospdeskclock) which works, (because deskclock is known) with your way to open the clock app. Thanks again for your great app, which is very helpful 👍