Custom activity on Stratos3 - Amazfit

Hi,
is there a way to create a personalized activity on Stratos3?
I want to give a label and an icon, select what to monitor and what not, give a custom meaning to laps and use the multisport/thriatlon framework to change the parameters/kind of sport during the activity.
If not, is the source code of the activity monitor app available?
There are developers who as improve it in some way?

Related

[Q] How to get a reference to the stock launcher activity object?

I want to read out the shortcuts' and widgets' position and name on the screens of the launcher. Since every launcher is different, I will focus on the stock launcher of Android for the moment. I have not found an API to do this, so I am trying my luck with Java's Reflection API. So far I have been able to get the class and read out the type of the variable holding the items on the desktop called mDesktopItems. But to read out the variable's content, I need a reference to the launcher activity object. It's obvious that this object does not have to exist, but I can probably check regularly and once it does, I would fetch the data.
So how do I get a reference to the launcher activity object? Or could you think of a better way of fetching the required data?

Display two dates using Calenderview widget

Chaps,
I am newbie to android development . I intend to develop a calender in android. For this I see a widget Calender-view
Calender display & change line color seems all fine. What I want is two dates to be displayed in each of the date box
How can that be possible . Can experts suggest be some ideas
DO I need to create two separate activities for two set of calender & then super impose the view
or use some sort of render-script to display updates the date text box.
or use some drawable property of a inherited view.
Their is a public interface to update the date text box. The input is resource id. I wonder what kind of resource it experts to update the date field.
any suggestion will be appropriate

Options menu for custom Clocks

Do any of you know how to accomplish this? I would like to get that little edit icon found below some of the stock clocks to make available some options for a watchface that I'm developing. I can't seem to find it in the documentation and I would like to allow the setting of a static location rather than GPS.
Randull said:
Do any of you know how to accomplish this? I would like to get that little edit icon found below some of the stock clocks to make available some options for a watchface that I'm developing. I can't seem to find it in the documentation and I would like to allow the setting of a static location rather than GPS.
Click to expand...
Click to collapse
AFAIK it's only possible with the stock clocks as the clock SDK hasn't been provided by Samsung.

[Q] How make watchface with options as Samsung ?

Hi there,
How make watchface with options as default Samsung ?
1. Editing settings in list of watchfaces ?
2. low energy when gestures - watch look ) ?
Try to search in API tizen but no .... ( no one words about
TNX
den812 said:
Hi there,
How make watchface with options as default Samsung ?
1. Editing settings in list of watchfaces ?
2. low energy when gestures - watch look ) ?
Try to search in API tizen but no .... ( no one words about
TNX
Click to expand...
Click to collapse
also if anyone have one of this watchfaces in WGT file ... ??
@den812: If I am not interpreting your question incorrectly then you are trying to develop a gear s watch app and you want to set it as default homescreen.
If I am correct then try this
Add <tizen:category name="com.samsung.wmanager.WATCH_CLOCK"/>
in your config.xml file while developing the app to make it an option to set as default watch on homescreen.
no ...
Jessbie said:
@den812: If I am not interpreting your question incorrectly then you are trying to develop a gear s watch app and you want to set it as default homescreen.
If I am correct then try this
Add <tizen:category name="com.samsung.wmanager.WATCH_CLOCK"/>
in your config.xml file while developing the app to make it an option to set as default watch on homescreen.
Click to expand...
Click to collapse
Hi,
No sorry .. problem with make watch_clock like Samsung GearS default watchface with mode edit settings from list of faces and then when sleep and wake up by up the hand catch this and show alternative low energy face like make in the default samsung gearS faces ( no digital watchface) ...

[MOD][Xposed] TextInject

The power of Xposed meets the power of Tasker. TextInject allows you to inject custom, dynamic text throughout your system.
Create custom variables using the Text Inject Tasker plugin. Insert those values throughout your rom.
(Tasker is not required to use TextInject but is required to set custom variables.)
Use weather variables to display weather with icons.
Go ahead, make your phone awesome!
What kind of customizations can I do?
You can integrate any dynamic custom text right into the systemui. Some example:
Show the weather on your lockscreen or in your statusbar
Change the date/time format
Show your owner info in place of the carrier text
Show how many minutes till your next appointment
Get creative...
What parts of my os does this allow me to customize?
You can change the following text on your throughout your system:
Lockscreen Clock Time
Lockscreen Clock Date
Owner Info
Carrier Text
Statusbar Clock
Notification Drawer Date
Notification Drawer Clock
Lollipop and KitKat supported.
On the Xposed repo: http://repo.xposed.info/module/com.chaimchaikin.textinject
XDA:DevDB Information
TextInject, Xposed for all devices (see above for details)
Contributors
chaimc
Xposed Package Name: com.chaimchaikin.textinject
Version Information
Status: Stable
Current Stable Version: 1.2
Stable Release Date: 2015-10-03
Created 2015-05-19
Last Updated 2015-10-03
Tutorial 1A: Weather with icons
Tutorial 1A: Weather with icons
Inspired by my actual setup this is how to get icons for the weather instead of just text.
This tutorial has been updated to include instructions for using weather icon codes. It's a lot simpler so you might want to try again.
First follow Tutorial 1 for getting the weather in your statusbar.
Then you'll edit the Tasker task that you made to update the weather:
Add a new action (+): Variables > Variable Set
Set it up as follows:
Name: %weathericon
To: $wa%weatherace_weather_id$
Change your Set TextInject Variable action:
Name: stays the same
Value: %weatherace_tempĀ° %weathericon
Run the task again once
Make sure you completed all the other steps in the previous tutorial
Tutorial 1: Weather in your statusbar
Tutorial 1: Weather in your statusbar
Required Apps
TextInject (This module of course)
Xposed
Tasker (https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm)
Weather ACE (https://play.google.com/store/apps/details?id=mycodefab.aleph.weather)
Weather ACE Tasker Plugin (https://play.google.com/store/apps/details?id=mycodefab.aleph.weather_plugin.locale)
Step One: Setting up Tasker
Open Weather ACE and choose and save your location
Open Tasker and make a new Time profile. Choose From time to be 00:01 (if you've updated Tasker, choose the time 12:01 am) and un-check the To time to make the profile run until midnight. Choose Repeat and set it to be every 20 minutes. (This will control how often the weather us updated. Set it to update more or less often as you wish.)
Now press back and create a New Task. You can call the task Update Weather (or don't call it anything at all if you are so inclined).
Once you in your Task Edit menu, press the add button (+) at the bottom. Choose Plugin > WeatherACE Tasker Plugin
Press the edit button (the pencil) next to Configuration
Leave the options as selected: Location: "Your Location" (Your actual location or AUTO) and Request: Current Conditions and press the tick
Return to the Task Edit menu.
Press the add button (+) at the bottom. Choose Plugin >TextInject and click edit (next to Configuration)
Set the following options: Name: weather and Value: %weatherace_tempĀ° %weatherace_weather_desc
Press the tick and return to the Task Edit menu.
Run the task once and press back until you are out of Tasker
Step Two: Setting up TextInject
Open TextInject and write the following in the Statusbar Time field: #weather (or if you want to also retain the time #weather #o) [You may need to wait a minute until the time updates to see the changes]
That's it!
Tutorial 2: Date/time Parsing
Required apps:
TextInject
Xposed
Setting up TextInject:
For this example we'll make two changes: First we'll add seconds to the lockscreen time. Second we'll add the date to the statusbar.
Next to the Lockscreen Time and Statusbar Time fields click the clock icon (this tells TextInject to parse the field as a date/time)
For the Lockscreen Time enter: hh:mm:ss
For the statusbar enter: MM/dd/yyyy #o (the #o retains the original value of this field. In our case the time.)
Press the tick or leave the TextInject app to save your settings
TextInject uses a Java DateFormat to format the date/time. For a full list of characters you can use see: http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
Variables and Weather Icons Explained
You don't have to read this to get weather icons - you can just follow Tutorials 1 and 1A above but if you want to know how it works or you having difficulties here is a full explanation:
There are three different types of variables we are dealing with:
Tasker Variables (e.g. %var)
TextInject Variables (e.g. #var)
TextInject Weather Variables (e.g. $var$)
The order of the list above is the order they are processed. Tasker Variables and TextInject Variables can be set by the user. (Tasker variables by adding an action Variable > Set Variable and TextInject variables can be set in Tasker using the action Plugins > Set TextInject Variable). TextInject Weather Variables, on the other hand, can not be set. (Yes, they are actually not variables but constants if you want to be technical.)
To be continued...
chaimc said:
The power of Xposed meets the power of Tasker. TextInject allows you to inject custom, dynamic text throughout your system.
Create custom variables using the Text Inject Tasker plugin. Insert those values throughout your rom.
(Tasker is not required to use TextInject but is required to set custom variables.)
Go ahead, make your phone awesome!
What kind of customizations can I do?
You can integrate any dynamic custom text right into the systemui. Some examples:
Show the weather on your lockscreen
Change the date/time format
Show owner info in place of the carrier text
Show how many minutes till your next appointment
Get creative...
What parts of my os does this allow me to customize?
For now you can change the following text on your lockscreen:
Clock Time
Clock Date
Owner Info
Carrier Text
Statusbar Clock
Notification Drawer Date
Coming soon: you'll be able to change (almost) any text throughout your systemui.
(Android 5 for now, more support coming!)
XDA:DevDB Information
TextInject, Xposed for all devices (see above for details)
Contributors
chaimc
Xposed Package Name: com.chaimchaikin.textinject
Version Information
Status: Beta
Current Beta Version: 0.1
Beta Release Date: 2015-05-18
Created 2015-05-19
Last Updated 2015-05-18
Available at http://repo.xposed.info/module/com.chaimchaikin.textinject
Click to expand...
Click to collapse
great idea, but it isn't working for me
I don't use a lockscreen so I tried the settings for Statusbar Time and Notification Drawer Date. Created a Tasker action to set a # variable, referenced that variable in the TextInject Xposed module, nothing happens. Rebooted, nothing happens
Can you show some screenshots or specify what devices this has been successfully tested on? I tried this on a Sony D5503
Awesome idea!
But I was pretty sad that it wouldn't install...
To prevent confusion I suggest pointing out it only supports android 5 ATM in the xposed download section
Looking forward to the KitKat version
Regards
[size=-4]Sent from my Boeffla powered Slim (4.4.4, AOSP based) GT-I9300[/size]
wyt18 said:
great idea, but it isn't working for me
I don't use a lockscreen so I tried the settings for Statusbar Time and Notification Drawer Date. Created a Tasker action to set a # variable, referenced that variable in the TextInject Xposed module, nothing happens. Rebooted, nothing happens
Can you show some screenshots or specify what devices this has been successfully tested on? I tried this on a Sony D5503
Click to expand...
Click to collapse
What rom are you using? Also can you send me a copy of your xposed log and I will look into it.
I don't like tweeking much ; but this is so cool I'll give it a try
chaimc said:
What rom are you using? Also can you send me a copy of your xposed log and I will look into it.
Click to expand...
Click to collapse
Thanks, I'm on 5.0.2 stock Sony. Will send you my Xposed log shortly. I also have GravityBox so not sure if that interferes with TI
It works for me, but not as expected... I set notifcation drawer date to #o-#nextalarm. When I refresh the value it shows the orginal value + nextalarm... Next time it gets refreshed it shows original value + nextalarm + nextalarm... I think the #o variable is now the real original value and the next alarm together. I hope you can fix this
w0rinal said:
Awesome idea!
But I was pretty sad that it wouldn't install...
To prevent confusion I suggest pointing out it only supports android 5 ATM in the xposed download section
Looking forward to the KitKat version
Regards
[size=-4]Sent from my Boeffla powered Slim (4.4.4, AOSP based) GT-I9300[/size]
Click to expand...
Click to collapse
OK I've edited the xposed description. Thanks.
Ultimous said:
I don't like tweeking much ; but this is so cool I'll give it a try
Click to expand...
Click to collapse
Glad you find this cool. Please let me know how it goes.
MartelKombat said:
It works for me, but not as expected... I set notifcation drawer date to #o-#nextalarm. When I refresh the value it shows the orginal value + nextalarm... Next time it gets refreshed it shows original value + nextalarm + nextalarm... I think the #o variable is now the real original value and the next alarm together. I hope you can fix this
Click to expand...
Click to collapse
Oops
Thanks, I'll fix that.
(In the meantime as a workaround you can set the value of #nextalarm to have the date in set from tasker)
chaimc said:
Oops
Thanks, I'll fix that.
(In the meantime as a workaround you can set the value of #nextalarm to have the date in set from tasker)
Click to expand...
Click to collapse
I think you get your "real" value before the method hook(beforeHookedMethod), I think you only need to grab the real value after the method hook(afterHookedMethod).
PS.: I'm a nooby in java development and only looked on the tutorial from rovo and the source of some modules (my modules failed a lot). I hope my tip was helping/right.
...
MartelKombat said:
It works for me, but not as expected... I set notifcation drawer date to #o-#nextalarm. When I refresh the value it shows the orginal value + nextalarm... Next time it gets refreshed it shows original value + nextalarm + nextalarm... I think the #o variable is now the real original value and the next alarm together. I hope you can fix this
Click to expand...
Click to collapse
Fixed now. Thanks for pointing that out.
w0rinal said:
Awesome idea!
But I was pretty sad that it wouldn't install...
To prevent confusion I suggest pointing out it only supports android 5 ATM in the xposed download section
Looking forward to the KitKat version
Regards
[size=-4]Sent from my Boeffla powered Slim (4.4.4, AOSP based) GT-I9300[/size]
Click to expand...
Click to collapse
KitKat support added. Enjoy
wyt18 said:
Thanks, I'm on 5.0.2 stock Sony. Will send you my Xposed log shortly. I also have GravityBox so not sure if that interferes with TI
Click to expand...
Click to collapse
This issue is possibly fixed in the new version of TextInject (v0.3). Please try and let me know. (You can send me the log again if you still having issues).
chaimc said:
This issue is possibly fixed in the new version of TextInject (v0.3). Please try and let me know. (You can send me the log again if you still having issues).
Click to expand...
Click to collapse
thanks, v0.3 worked for me!
w0rinal said:
Awesome idea!
But I was pretty sad that it wouldn't install...
To prevent confusion I suggest pointing out it only supports android 5 ATM in the xposed download section
Looking forward to the KitKat version
Regards
[size=-4]Sent from my Boeffla powered Slim (4.4.4, AOSP based) GT-I9300[/size]
Click to expand...
Click to collapse
KitKat now fully supported.

Categories

Resources