语言

Menu
Sites
Language
UI Application and widget in single package

Is this possible? What is the suggested configuration when shipping a product that needs to run as a native app AND a widget (via widget board).

响应

10 回复
Aaron Alexander

Basically having ui-application and widget-application segments in the manifest.xml doesnt work.

More specifically i'm curious how the weather app works as a widget AND app, and bonus points for the api that can be used via widget to launch the actual app.

Alex Dem

Hi 
I did not face mentions about ui app & widget in single packet.
Alexey.

Aaron Alexander

If I put both sections in the manifest it either doesn't compile or the widget doesn't run. Do you have an example manifest that works? This seems like a common use case. Are there any samples that do this?

 

 

Palitsyna

Hello,

I haven't heard about such possibility. 

Probably you can use Hybrid Application(Web UI and Native Services): http://infidea.net/tizen-hybrid-app-tutorial/ But as I understood, it is not the thing you are looking for.

 

Aaron Alexander
The s2 weather app widget does this. You tap the widget to go to the weather app. I'm new to Tizen, but figured this would be a pretty common request from anyone creating a widget...
Alex Dem

Hi,
just fyi : If you have emulator/device with desired app (weather) : Maybe you could try to find application folder via IDE->Connection Explorer inside /opt/usr/apps/ and study manifest . If you try to perform 'sdb root on'  (see tutorial):
https://developer.tizen.org/dev-guide/2.3.1/org.tizen.devtools/html/common_tools/smart_dev_bridge.htm
more internal folders of /opt/usr/apps/ could be visible  in your Tizen IDE->Connection Explorer. You could try to pull manifest file.
It works for emulator (I checked it) but I did not sure (did not check) that it is possible for real s2 device.
Alexey.

Aaron Alexander

Permission Denied error trying to turn root on like that.

 

Sung-jae Park

Hello,.

 

Maybe you can packaging them into A tpk file using project property setting.

 

In the IDE, press the right button on the project name (left side of IDE, project browser)

Click the "Prperties"

 

Then the DialogBox will be appeared named "Properties for YOUR_PROJECT_NAME".

On the left side of it, You can find "Project Reference".

 

If you click it, you will see the list of projects on the right side of dialog window.

Choose one which will be packaged to a same TPK file with current project.

 

Finally you will get a single TPK file built with Two or more projects.

daniel kim

Hi,

I think that you can achieve your requirement by this way. you can make a native UI application by UI application template and make a widget application seperately by widget application template.

Then you can make those project to multi porject if you select widget project in below meue in UI application project.

     Right lick your project in Project Explorer--> Project references

Once you create your TPK after this, you will see that two project is merged to one tpk file.

Please refer to below section in help page of IDE as well.

           Getting Started > Native Application > Native Application Developement Process > Developing Multiple Projects as a Combined Package

Regards

Jean Yang

Please notice after packaging the multi-project application, the package consists of the application binary, resource, and data files of the root and referenced applications. Their tizen-manifest.xml files are merged into one. The application ID in the tizen-manifest.xml must be assigned with the package ID as a prefix.

You can find the introduction of "Developing Multiple Projects as a Combined Package" at below link:

https://developer.tizen.org/development/getting-started/native-application/application-development-process