언어 설정

Menu
Sites
Language
How to create an app + widget?

Hi,

How to create an app with widget just like the dual clock widget which opens up clock app for settings.

I have created the widget but i need to give a full screen settings menu. Is there a way i can do it without creating an app or how do i create a app + widget in one single application.

Responses

6 댓글
daniel kim

Hi,

You can make multi-project by below way to make a package of native application and native widget for Gear S2.

      right click your application project in project explorer --> properties --> Project refernece --> just select a project of native widget.

Regards

Alex Dem

Hi , 
See this tutorial (and table):
https://developer.tizen.org/development/getting-started/native-application/application-development-process#develop
Looks like you could create Native UI app (it will be main project, as "Setiings") and pack any amount of widget apps (you need 1 app) inside. It should help in your case.
Alexey.

Alex Dem

Also, 
You could launch your Native UI app (after click on widget app located on Home screen) with App Control functionality (Explicit launch):
https://developer.tizen.org/development/guides/native-application/application-framework/application/app-control#controls
To detect that widget was clicked you could use:
 

evas_object_event_callback_add(wid->TopEvasObj, EVAS_CALLBACK_MOUSE_DOWN, _clicked_cb, NULL);

inside widget application.
Alexey.

sriram

Hi Alex,

My requirement is inline with the above query.

I need to launch a settings app on click of widget.  So i have added my Widget app as a reference in Project References of UiApp.

When i run the UIApp, that will be shown as a normal app in the main menu.  But my requirement is that the UiApp has no individual existance, it should be launched only when widget is clicked.

Could you please guide me on how to achieve this.

regards

Sriram.

sriram

I was able to do it with small change in manifest.xml of ui app thanks.

 

regards

Sriram.

Alex Dem

Hi, yes,
To do not show UI App it is enough to add in manifest> Advanced :  nodisplay="true" .
Alexey.