Languages

Menu
Sites
Language
TIZEN application launch

Hi all,

First, wanted to say how great it is to be able to join Tizen Developer/Community and share through post/s.

To my main problem: I can't seem to make tizen.application.launch to work..

The tizen web application does show on emulator and it runs, although I encounter an error when it accesses the tizen.application.launch line..

Here's my code:

tizen.application.launch('http://yourdomain/Sample-Filesystem', onLaunchSuccess,
                            onError);

The error says that it can't find the application, but that name specifically comes from the config.xml file of that application.

Thanks in advanced for the help and support.

:-D

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 Replies
Michelle Somerville
Hi Dex, Thanks for your question. The tizen.application.launch method uses the application id parameter to launch an application. If you are using Tizen2.0 alpha version, the application id is the 10-character alphanumeric value in your config.xml file. You can view this either on the Tizen tab in the configuration editor view, or in the tizen:application tag in the xml file. So you should replace the first parameter in your tizen.application.launch method with the appropriate 10-character id. Regards, Michelle
Dex Uy
Hi Michelle, Thanks very much for your answer. Yes, we're using the Tizen2.0 alpha version, and apparently, we used the wrong id, which was shown in the configuration editor.. I believe it's the widget identification, so that's why it couldn't find the application.. Anyway, we opened the xml by text editor though and used the tizen:application tag for the id and it worked! :) While on this topic though, I'd like to post one more question if I may in regards to the ID of a TIZEN NATIVE APP? It seems that the tizen platform projects have only .spec files and no xml configurations. Would this mean that the native apps really have no way to be called or launched by a web application? Or is there a way for the id to be included in the .spec file? Thanks Again for the time.. Regards, Dex
Michelle Somerville
Hi Dex, Glad you got it working. Native apps can be launched from a web app using the same launch method. They have a different style of application-id. It's only the web apps that use the 10-character application id defined in the config.xml file. You can launch the (native) gallery application for example using the following code: tizen.application.launch("org.tizen.gallery", onLaunchSuccess, onError); The string "org.tizen.gallery" is the application id for this native app. You can see all the apps that are installed in the emulator from the sdb shell in the /opt/apps directory or using the connection explorer in the IDE. Regards, Michelle
Dex Uy
Hi Michelle, Thank you very much for your reply. We did have a successful launch of the native app once we double checked the app id in /opt/apps.. Thanks again and it's really helpful to what we're working on now. Have a Great Day. Regards, Dex