Get app package names and open applications dynamically on a Tizen Wearable device!
Developing apps for Tizen devices can be annoying... All of the samsung smart watches up to the Galaxy Watch 4 all run on Tizen OS... Newer devices thankfully run on Android Wear... This guide is for the older wearable devices.
Assuming you have debugging and developer options enabled... and installed the Tizen Device Manager.
You can click on your device
Here is some C# code that you can use to launch any package programmatically:
async Task openApp(string packagename)
{
Tizen.Applications.AppControl myAppControl = new Tizen.Applications.AppControl();
myAppControl.ApplicationId = packagename;
try
{
await Task.Run(() => Tizen.Applications.AppControl.SendLaunchRequest(myAppControl));
}
catch(Exception e)
{
status.Text = "Failed to launch: " + e.ToString();
}
}
and you enter the package name as a string... you will need to enable this privledge though to actually use this
"appmanager.launch" in tizen manifest to actually launch another app or even the settings panel
No comments:
Post a Comment
Thank you for posting a comment, it will be reviewed and then posted shortly.