Can I lock the Apple Watch programatically with WatchKit - watchkit

I am working on an app to be used in the sea. I'd like to offer the user a button to lock the watch, exactly the same way you can from the native Workout app, but I can't find anything in the API which allows this.
Is it really not possible to lock the watch programatically?

As a work around, I am creating a UI with no controls and then monitoring the user turning the crown and then showing a different UI.
The user can still press the buttons, which they can't in the activities app, but there are no false touches generated by water.

Related

Set app as default launcher Programmatically

we have an app that is used by providers for TV. We do not have Operator tier yet since there requirements are really high..
The issue we have is we use a commercial Android Tv box provider and they have a similar panel(like tier) for us to manage the device like remote buttons..
In order to facilitate the user experience we need to enable the app as a laucher for Home button to load our application.
But to get to that, we need to enable developer mode and then debug... A big process for common users to manage if they factory reset there boxes..
Also we do not want that dialog to show all the time that asks if we want this application to be set as default laucher..
Is there a way with android 10 and up to have our app as a default laucher?Without playing arround with ADB and developer settings?
Thx!

Possible to have two apps respond to the the same base URL using Firebase

I currently have a scenario where I have app A and a sister app called app B. I would like to have app A and app B respond to a Firebase dynamic link and be able to either app A or app B opened depending on which app the user has on their phone.
Is it possible to achieve this in Firebase. So if I have www.mydomain.com/data/myData. If person A has app A on their phone, the when person A presses www.mydomain.com/data/myData, the app A opens. But if person B who has app B installed on their phone press www.mydomain.com/data/myData then app B opens. Is this possible at all on FireBase?
Ultimately what I'm trying to do is have two apps be able to acquire information from say a URL like, www.mydomain.com/data/myData and use myData as needed in each separate app.
Think of it as two apps "sharing" data between each other.
From an iOS perspective, based on this tutorial and this response from branch on SO, clearly this is possible but does Firebase cater for an app being able to respond to two custom URLs.
Disclaimer: I haven't actually tested this all the way through.
This should be possible with Dynamic Links. When you visit the Overview section of the Firebase console, you have the option to add multiple apps to a Firebase single project. Both apps are correctly inserted into the apple-app-site-association file, which means every Dynamic Link in that Firebase project will be a Universal Link that should correctly triggers either app.
There are a couple caveats to be aware of:
Behavior if both apps are installed on a device is undefined.
For obvious reasons, you have to pick just one of the App Store pages as the app-not-installed fallback location. A workaround for this could be sending the user to a non-store page.

Can you use java FX to create an app that sits on the desktop background?

We have this requirement where the user wants to see data from a MSSQLServer database right on the desktop when the user logs in.
Very similar of what BGInfo can do for you but instead of system properties data to have some metrics from your operational database.
Would JavaFX work for this requirement?
Could it be on the background image? or would it be accessible only via a double click?
Can anybody share a very minimalistic example?
Any other options I should consider?
Thanks,
-Viriato.

Ranorex Automated Testing Tool Recording Issue with WPF Application

I have got huge wpf application for hosipital.Now we have decided to go with automated Testing Tool
I went through few tools and made some research and picked up few to implement it.Now Ranorex Tool is superb tool but there are only very few little demo videos for wpf were there.
My Requirement is to Test my wpf application fully automated and I should able to test the application through command Prompt.I have tried few tools I Strucked up
My existing Application functionality goes like this...
In my wpf application , the mainwindow consists many tiles . and each tile will have many imageicons while moving the mouse cursor onto the tile it zooms bigger then we can able to click on imageicon then it will navigate to other screen which I can say popup window opens up and there we push some information and saves up then close the popup window.
When Recording through the Ranorex Tool,After clicking on ImageIcon of particular Tile it is not responding if anything there to setup please let me know I will be happy if any videos or screenshots step by step for WPF Automation is there
If any Automation Testing Tool with Good stuff Demo and video Please let me Know
Thank You

Is it possible to run q Qt Symbian application in the background and interact with the homescreen?

I'm writing a Symbian application using Qt for Symbian that is supposed to run on S60 3rd edition FP1, FP2 and 5th edition phones.
In my application, I will need to implement push notification functionality that will notify the user of changes on the server. Basically, it is a pending tasks application. When a new task is assigned to the user, he should be notified.
Ideally, the user will start the application and somehow, send it to the background so that it will continue to wait for push notifications (which is another question, but I will have to search a bit first!).
When a push notification comes, ideally, a notification is displayed on the homescreen of the user, much like indicating up coming calendar appointments. If this is not possible, then a popup notification from the application might do.
The question is, is such kind of functionality possible with Qt for Symbian alone? If not, can somebody direct me in the right direction? So far I've only found the Homescreen Publishing API but this is for Series 60 5th edition phones only.
Thanks!
For 3rd edition phones there is no published way to add to the homescreen. I've seen comments that there is a API but there is no documentation and it only works in you are in ROM so it's not usable.
You can add a overlay window to the homescreen. Here is an example from nokia.
I haven't done any 5th edition work yet so I don't know.

Resources