FORUMS
Remove All Ads from XDA

[APP] Widget Calendar v1.6.2 - Pace/Stratos (2018-05-25)

444 posts
Thanks Meter: 212
 
By GreatApo, Senior Member on 19th February 2018, 02:31 AM
Post Reply Email Thread

Pace/Stratos Calendar Widget
Hello everyone,
After @Quinny899 's excellent work , we are able to make widget/apps! So, here is the first Calendar Widget for our Amazfit Pace/Stratos! This app would be displayed as a widget after you reboot your watch (or the launcher). In order to move this widget you will need @Quinny899 's "Springboard Settings" app from here since it can't be moved through the phone app.


Screenshot:
Click image for larger version

Name:	com.dinodevs.pacecalendarwidget-1.3.png
Views:	1284
Size:	165.6 KB
ID:	4470831Click image for larger version

Name:	com.dinodevs.pacecalendarwidget-1.3-settings.png
Views:	1298
Size:	115.7 KB
ID:	4470832

Features:
  • This is a Pace/Stratos Widget
  • Change to previous/next months (swipe/buttons)
  • Refresh to current date
  • Vibration on button touches
  • Date is refreshed when you change back to this widget
  • Long press for settings (2sec)
  • Change calendar's color
  • Show/Hide year number
  • Select Sunday or Monday as 1st day of the week
  • Supported languages: English, Chinese, Czech, Dutch, French, German, Greek, Hebrew, Hungarian, Italian, Japanese, Polish, Portuguese, Russian, Slovak, Spanish
  • Right to left Calendar support (for Hebrew language)
  • Settings are saved
Bugs:
  • Watch OS versions above 1.3.6d may face settings opening problems when changing widgets

Installation
ADB install command / restart launcher: (if you have errors, uninstall the previous version first)
Code:
adb install -r PaceCalendarWidget-1.6.2.apk
adb shell am force-stop com.huami.watch.launcher
ADB uninstall command:
Code:
adb uninstall com.dinodevs.pacecalendarwidget

Changelog:
Version 1.6.2 (26/05/2018)
• Added Dutch language (thanks to Northguy)
Code:
Version 1.6.1 (14/04/2018)
• Czech language fix
Code:
Version 1.6 (13/04/2018)
• Settings are now saved in the emulated external storage
• Added Czech, Hebrew, Polish translations (thanks to kaziu687, pavel zeldin and selvok)
• Right to Left calendar support
• Settings pop up bug fix reverted to version's 1.4 solution + long press duration is set to 2sec
• Ability to call double click listener in source codes
Code:
Version 1.5 (10/04/2018)
• Added translations for setting texts
• Swipe calibrations
• Fixed settings opening bug for Stratos (?)
Code:
Version 1.4 (09/04/2018)
• Swipe up/down to change month added again
• Long press rescripted
• Ability to use left/right swipes in source code (not recomended for widget mode)
Code:
Version 1.3 (08/04/2018)
• Translations added (ported from this project: jsCalendar)
• Set Monday 1st day of the week
• Vibration on button touch
• Bug clicking refresh while on settings fixed
Code:
Version 1.2 (08/04/2018)
• Refresh to current date after widget change
• Change calendar's color
• Show/Hide year number
• Swipe removed
Code:
Version 1.1 (07/04/2018)
• Custom made
• New design
• Refresh to current date
• Swipe to move through months (buggy)
Code:
Version 1.0 (19/02/2018)
• Initial release

Download:
This app is based on @Quinny899 's work over springboard widgets . The source code is writen with coments so you can use it as a base to create a widget. There are already scripted codes (ex. hard coded swipes/long clicks) that you may need. For more about how to set up a widget/app for Pace, you can also follow this topic "[DEV] Create custom home screen pages for the Pace".

FAQ:
  • Can I sync my phone calendar events with this app?
    You can't. However, some devs are working on it.
  • My language is not included!
    Reply to this topic with your language's week days, months and the texts you see in settings. I will add them ASAP.
  • I have the [INSTALL_FAILED_UPDATE_INCOMPATIBLE] error!
    Run the uninstall command from adb first. (don't uninstall with Amazfit Tools)

Thanks to:
Code:
Quinny899, DarkThanos and all the translators (see changelog)
Attached Thumbnails
Click image for larger version

Name:	icon.png
Views:	1282
Size:	5.8 KB
ID:	4424473  
The Following 21 Users Say Thank You to GreatApo For This Useful Post: [ View ] Gift GreatApo Ad-Free
 
 
19th February 2018, 06:42 AM |#2  
Member
Thanks Meter: 8
 
More
Yeah gréât job !
19th February 2018, 08:09 AM |#3  
Member
Flag Parma
Thanks Meter: 189
 
Donate to Me
More
Quote:
Originally Posted by GreatApo

Attachment 4424473
Pace Calendar Widget
Hello everyone,
After @Quinny899 's excellent work , we are able to make widget/apps! So, here is the first Calendar Widget for our Amazfit Pace!

Screenshot:

Download:
• Version 1.0 in attachments: Attachment 4424474

Installation:
Code:
adb install -r PaceCalendarWidget-1.0.apk
Uninstall:
Code:
adb uninstall com.dinodevs.pacecalendarwidget
Usage:
This app would be displayed as a widget after you reboot you watch (or the launcher). In order to move this widget you will need @Quinny899 's "Springboard Settings" app from here since it can't be moved through the phone app.

Source:
This app is completely based on @Quinny899 's work with small changes , basically just the app layout. The source code for a demo widget/app can be found here. For more follow this topic "[DEV] Create custom home screen pages for the Pace".

Great Job! can i add it in my custom ROM?
19th February 2018, 08:39 AM |#4  
Member
Thanks Meter: 1
 
More
Really great widget. Is there any way it can sync with calendar on my phone. I understand that there is no google services on the watch, but probably there is other way to push events data.
19th February 2018, 09:19 AM |#5  
Quinny899's Avatar
Recognized Developer / Recognized Contributor
Flag Ormskirk, Lancashire, UK
Thanks Meter: 6,037
 
Donate to Me
More
Nice job! You worked really quick to get this up 👍

Quote:
Originally Posted by jazzymc

Really great widget. Is there any way it can sync with calendar on my phone. I understand that there is no google services on the watch, but probably there is other way to push events data.

Not only is there no play services but the watch doesn't actually stay connected to WiFi, and unless you manually connect it in code it won't do (which can be a battery hog). What I'm also looking at is how the weather app works, as that must use internet over Bluetooth, to see if it's feasible to connect that way
The Following 2 Users Say Thank You to Quinny899 For This Useful Post: [ View ]
19th February 2018, 12:00 PM |#6  
GreatApo's Avatar
OP Senior Member
Thanks Meter: 212
 
Donate to Me
More
Quote:
Originally Posted by Cracklydisc

Great Job! can i add it in my custom ROM?

You should speak with @Quinny899, the base code is actually his and you should probably add the "Springboard Settings" apk too. For me do whatever you want

Quote:
Originally Posted by Quinny899

Not only is there no play services but the watch doesn't actually stay connected to WiFi, and unless you manually connect it in code it won't do (which can be a battery hog). What I'm also looking at is how the weather app works, as that must use internet over Bluetooth, to see if it's feasible to connect that way

Nice!
The Following User Says Thank You to GreatApo For This Useful Post: [ View ] Gift GreatApo Ad-Free
19th February 2018, 12:25 PM |#7  
Quinny899's Avatar
Recognized Developer / Recognized Contributor
Flag Ormskirk, Lancashire, UK
Thanks Meter: 6,037
 
Donate to Me
More
Quote:
Originally Posted by Cracklydisc

Great Job! can i add it in my custom ROM?

Feel free to add any of my apps, they're all open source anyway
The Following 2 Users Say Thank You to Quinny899 For This Useful Post: [ View ]
20th February 2018, 12:54 AM |#8  
Member
Thanks Meter: 36
 
More
Quote:
Originally Posted by Quinny899

Nice job! You worked really quick to get this up



Not only is there no play services but the watch doesn't actually stay connected to WiFi, and unless you manually connect it in code it won't do (which can be a battery hog). What I'm also looking at is how the weather app works, as that must use internet over Bluetooth, to see if it's feasible to connect that way

What about making a companion phone app that can send data from the internet to the watch over BT?

In the interest of further apps with net access, you could make a phone side app that gives net access to watch apps and can be used by anyone wanting make an internet enabled watch app.
The Following User Says Thank You to shadowcaster666 For This Useful Post: [ View ] Gift shadowcaster666 Ad-Free
20th February 2018, 09:09 AM |#9  
Quinny899's Avatar
Recognized Developer / Recognized Contributor
Flag Ormskirk, Lancashire, UK
Thanks Meter: 6,037
 
Donate to Me
More
Quote:
Originally Posted by shadowcaster666

What about making a companion phone app that can send data from the internet to the watch over BT?

In the interest of further apps with net access, you could make a phone side app that gives net access to watch apps and can be used by anyone wanting make an internet enabled watch app.

That's what I'm going to do probably, the weather app uses code that only works for the weather :/
21st February 2018, 08:05 AM |#10  
Junior Member
Thanks Meter: 0
 
More
Hi. Good job
Can you upload the source code? I saw the thread of demo widget but your calendar its amazing bt im spanish and usually my weeks begin on monday and i wold like change it.
thanks in advantage
21st February 2018, 10:25 PM |#11  
GreatApo's Avatar
OP Senior Member
Thanks Meter: 212
 
Donate to Me
More
Quote:
Originally Posted by storm of fire

Hi. Good job
Can you upload the source code? I saw the thread of demo widget but your calendar its amazing bt im spanish and usually my weeks begin on monday and i wold like change it.
thanks in advantage

The source code was uploaded on Github.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes