打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Packaging a Hybrid Application | Tizen Developers

The Tizen platform allows you to create hybrid application packages, which combine a Web UI application and 1 or more native service or widget applications.

 

Creating a Project for a Hybrid Package

To create the projects for a hybrid package:

  • Create a Web UI project:

    1. In the IDE, select File > New > Tizen Web Project.

    2. Select a basic application template, enter the project name, check the version, and click Finish.

  • Create a native service or widget project:

    1. In the IDE, select File > New > Tizen Native Project.

    2. Select the service or widget application template, enter the project name, check the version, and click Finish.

  • The created projects are shown in the Project Explorer view.

Defining Project Settings for Hybrid Packaging

To create a hybrid package, establish a project reference between the Web and native projects:

  1. In the Web UI project context menu, select Properties > Tizen SDK > Package > Multi.
  2. Select the check box for the service or widget application to be included in the hybrid package, and click OK.

    In the Project Explorer view, the native project shows that it is referenced with the Web UI project.

Building a Hybrid Package

To build a hybrid package:

  1. In the Web UI project context menu, select Build Package.

  2. The IDE generates a WGT package that contains the Web and native applications.

    The generated WGT file has the following content hierarchy:

Checking the Native Manifest File in the WGT File

The hybrid package contains a config.xml file (from the Web project) and a tizen-manifest.xml file (from the native project).

During packaging, the package and appid values of the tizen-manifest.xml file are changed based on the config.xml file.

  • config.xml (Web UI application)

    <?xml version="1.0" encoding="UTF-8"?><widget xmlns:tizen="http://tizen.org/ns/widgets" xmlns=http://www.w3.org/ns/widgets        id="http://yourdomain/WebBasicApplication" version="1.0.0" viewmodes="maximized">   <tizen:application id="Mz5h6LQ0GH.WebBasicApplication" package="Mz5h6LQ0GH"                      required_version="2.3.1"/>    …   <tizen:profile name="wearable"/></widget>
  • tizen-manifest.xml in the WGT file (package and appid values have been replaced)

    <?xml version="1.0" encoding="UTF-8" standalone="no"?><manifest xmlns="http://tizen.org/ns/packages" api-version="2.3.1" package="Mz5h6LQ0GH"          version="1.0.0">   <profile name="wearable"/>   <service-application appid="Mz5h6LQ0GH.nativeserviceapplication"                        exec="nativeserviceapplication"                        multiple="false" nodisplay="true" taskmanage="false" type="capp">    …   </service-application></manifest>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
AndroidManifest.xml文件综合详解
Mobile Application Development
Using C++ OpenCV code with Android binary package
Google Maps Android API v2 — Google Developer...
JAX
Web App Manifest: Open Websites Like Native Apps on Mobile Devices
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服