0

I'm currently building a native app on Tizen latest SDK and it needs to be programmed in C language. In my app I need to build a kind of "alarm clock" that will go off in a certain time and if the device is asleep my app will need to woke it up. I can do this already but my app is not shown in the lock screen. I want to know if you guys have any idea of how I can wake up the screen AND make my app ui's go overlapping the lock screen natively and in using the new SDK that it is C based.

Thank you!

Eduard Florinescu
  • 16,747
  • 28
  • 113
  • 179
Kamila Brito
  • 198
  • 8

1 Answers1

0

For starters, Tizen Native API is in C++, not C.

As for your question, on https://developer.tizen.org/ you can find examples:

how to show popup on locked screen:

Popup pPopup = new (std::nothrow) Popup();
pPopup->Construct(true, Dimension(600, 750));

if (Tizen::Shell::LockManager::GetInstance()->IsLocked())
{
   // 'http://tizen.org/privilege/uimanager' platform privilege required
   pPopup->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_HIGHEST);
}

how to unlock screen:

if (Tizen::Shell::LockManager::GetInstance()->IsLocked())
{
   // 'http://tizen.org/privilege/lockmanager' platform privilege required
   Tizen::Shell::LockManager::GetInstance()->Unlock();
   UiApp::GetInstance()->GetFrameAt(0)->SetZOrderGroup(WINDOW_Z_ORDER_GROUP_NORMAL);
}
m.wasowski
  • 6,329
  • 1
  • 23
  • 30
  • M.wasowski, the new API is in C as I said in the question and I have this examples. But thank you for trying to help. – Kamila Brito Oct 15 '14 at 21:53
  • OK, I found capi in SDK beta and see what do you mean (I didn't know it has published already). For your use case I would see notification capi; you can make notification appear on lockscreen, you can add sound to it, you can also specify action via app-control, so you have all the tools you need. – m.wasowski Oct 16 '14 at 12:04
  • Yeah, I was thinking about using notifications but I just wanted to make sure about the other way wasn't possible :/ Thank you for the tip. – Kamila Brito Oct 16 '14 at 13:04