简体   繁体   English

无法在模拟器上运行演示Tizen时钟应用程序

[英]Cannot run demo Tizen clock app on emulator

I'm learning Tizen on Samsung wearable through Tizen's developer site. 我正在通过Tizen的开发人员网站在三星可穿戴设备上学习Tizen。 Followed the analog clock example, to the point of uploading. 遵循模拟时钟示例,直至上传。 When I hit the Run button on IDE, last few lines of console shows 当我在IDE上单击“运行”按钮时,控制台的最后几行显示

 Installed the package: Id(BIQsvZ9SAx), Version(1.0.0) 

[Uploading RDS information to target...] Tizen application is successfully launched. [正在将RDS信息上传到目标...] Tizen应用程序已成功启动。 The application is not available for run. 该应用程序不可运行。 So the application is just installed. 因此,该应用程序刚刚安装。 (9.613 sec) (9.613秒)

The clock app is nowhere to be found on the watch simulator. 在手表模拟器上找不到时钟应用程序。 No other error occured. 没有发生其他错误。 It just finsihes and not run anything. 它只是结束而没有任何运行。

I do have 我有

tizen:category name="com.samsung.wmanager.WATCH_CLOCK" tizen:category name =“ com.samsung.wmanager.WATCH_CLOCK”

in my config.xml. 在我的config.xml中。

Have been searching the web for some answer, yet it seems I'm alone. 一直在网上寻找一些答案,但似乎我很孤单。 Any help to get this to work is much appreciated. 非常感谢您对此工作的任何帮助。

NB I can get "Hello World" to work though. 注意:我可以使“ Hello World”工作。 It's just the watch demo does not work. 只是手表演示无法正常工作。

Thanks. 谢谢。

Watch face apps will have following in their config.xml which differentiate it with other apps. 表盘应用程序的config.xml中将包含以下内容,以使其与其他应用程序区分开。

<tizen:category name="http://tizen.org/category/wearable_clock"/>

Watch face needs to be selected from list of watchface apps installed on Gear S2 device, it doesn't start automatically. 需要从Gear S2设备上安装的表面应用程序列表中选择表面,它不会自动启动。

Other category apps will be auto launched on installation from tizen sdk. 其他类别的应用程序将从tizen sdk安装时自动启动。

A watchface app cannot be tested on Gear Emulator/Simulator . 无法Gear Emulator / Simulator上测试表面应用程序。 It can only be tested on Original Gear Device. 只能在原始齿轮装置上进行测试。 But there is hack to test watchface on Gear S2 Emulator. 但是可以在Gear S2 Emulator上测试表面外观。

Hack 哈克

Comment the above mentioned line in config.xml to launch the watch face app as similar to hello world app. 注释config.xml中的上述行以启动表盘应用程序,类似于hello world应用程序。

My terrible mistake. 我可怕的错误。 The clock is uploaded but won't show up automatically. 时钟已上传,但不会自动显示。 I have to select it in settings deliberately (unlike Android which pops up the newly uploaded app immediately). 我必须在设置中故意选择它(不同于Android,Android会立即弹出新上传的应用程序)。

My mistake. 我的错。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM