Guest User

Untitled

a guest
Jul 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function bringApplicationToFront() {
  2. //here I would use tizen.power.turnScreenOn():
  3. tizen.power.request("SCREEN", "SCREEN_NORMAL");
  4. var app = tizen.application.getCurrentApplication();
  5.  
  6. //app is launched just in case it is currently in background
  7. tizen.application.launch(app.appInfo.id, () => {
  8. tau.openPopup("pageToShow");
  9. tizen.power.release("SCREEN");
  10. }
  11. }
Add Comment
Please, Sign In to add comment