语言

Menu
Sites
Language
ServiceApp + window over all other

Is it possible in tizen make an "over all" window(frame) from background service app over all other programs?

The main idea:

- background GPS service

- when we drive near some points - draw small window with some info for 5-7secound

I try popup - but it required parent window, but I don't have parent.

In Android I use WindowManager object for that.

Does Tizen have alternative?

响应

3 回复
Alex Dem

Hi
As I know background service application have no UI. You could create service app
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.appprogramming/html/guide/app/service_app_fundamentals.htm
which could interact with UI app (with some form) and pack both apps inside one package. Look how to pack here:
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.appprogramming/html/app_dev_process/packaging_app.htm#multi
Also for you case I know 3 approaches:
1) Service App could launch UI App directly using Tizen::App::AppManager::LaunchApplication (but you can't send incoming params)
2) You could register UI app like App control:
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.appprogramming/html/guide/app/app_controls.htm
and look at all links below on the page
    *Exporting AppControl functionality from your application
    *Resolving AppControls to identify which of the available application controls to use
    *Delivering launch arguments to the called AppControl instance
    *Handling a request from the AppControl instance
3) or apps could interact via Remote/Local message port like here in Tizen example described here: https://developer.tizen.org/dev-guide/2.2.1/?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fsample_descriptions%2Fmultiprocess_package.htm
Maybe these thoughts could be useful.
Alexey.

Alex Dem

and just one more note:
in UI app you could use Tizen::Ui::Window::SetZOrderGroup(WINDOW_Z_ORDER_GROUP_HIGH);
or with WINDOW_Z_ORDER_GROUP_HIGHEST ID  (except Power popup)  to show UI app over all programs (volume slider bar , lock screen).
But this api needs platform privilege level , see https://developer.tizen.org/dev-guide/2.2.1/org.tizen.gettingstarted/html/tizen_overview/platform_privileges.htm
and here is link to distributor certificate:
https://review.tizen.org/git/?p=framework/security/hash-signer.git;a=tree;h=0f8cb9ccabcf2fc4c9692613de8ca61e5a362c88;hb=bd8d04b0e94ae6cce668f6df9c93316eded01cd5
Alexey.

Vitaly

Thank you - but I find answer.

The main idea is:

Frame->SetShowMode(FRAME_SHOW_MODE_PARTIAL_SCREEN_FLOATING);

Unfourtunatly there is only one small example in documentation :-(