Languages

Menu
Sites
Language
How do you toggle between web apps programatically?

Hello,

We have a number of web applications that run at the same time on the Tizen platform.  We can toggle between them via a blue tooth keyboard using the windows key and the tab key, but we need to be able to toggle between them just using the touch screen as in the final deployment, there will not be a physical keyboard present.

I have been trying to find something in the API that would allow this, but so far I have not been able to find it.

Do any of you have a suggestion of how to go about this?

I'm hoping that we can make a call to an API and that by passing the application ID, we could cause that application to come to the front.

Thanks for any help you can provide.


Best regards,

Kevin

Responses

3 Replies
Kevin Randolph

I found 'hide' easily enough.  If only I could find 'show'. . .

https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.device.apireference/tizen/application.html#::Application::ApplicationControl

hide
Hides the current application.
void hide();
             

Since: 2.0

Exceptions:

  • WebAPIException
    • with error type UnknownError, if any other error occurs.

Code example:

 var app = tizen.application.getCurrentApplication();

 app.hide();
 
Alex Dem

Hi,
There was no necessity to create separate show() method in Tizen (to move app from background to foreground).
You could use ApplicationManager interface's method :
void launch (ApplicationId id, optional SuccessCallback? successCallback, optional ErrorCallback? errorCallback)
As I know: If your app is in background this api moves your app to the foreground.
Alexey.

AVSukhov

Hello,

Web app lifecycle manager has no "resume" or "show". You can only use "launch" but it will restart your application.