Languages

Menu
Sites
Language
Create a custom lock screen in tizen

How can we create a custom lock screen in Tizen or atleast a high priority window which is destroyed only when unlock button is clicked and all the three soft keys should not destroy/minimize the window... Is it possible in Tizen??

View Selected Answer

Responses

22 Replies
Mark as answer
Alex Dem

Hi 
Regarding your high priority window you could try to create your root win widget this way:
 

#include <efl_util.h>
//...
ad->win = elm_win_add(NULL, PACKAGE,ELM_WIN_NOTIFICATION);
efl_util_set_notification_window_level (ad->win, EFL_UTIL_NOTIFICATION_LEVEL_3);

with privilege http://tizen.org/privilege/window.priority.set
It should works. Also to overlay lock screen app you could use EFL_UTIL_NOTIFICATION_LEVEL_2
Alexey.

Vivek Chandra Amancha

How can I use this for a view... I mean how can I set the priority of the view.

Vivek Chandra Amancha

I have created my view with UI builder...

Alex Dem

Hi,
I use Win 64 Tizen rev2 version without UI builder. My base root widget is Win (on which container widgets could be placed). This could widget could be configured this way. 
Alexey.

Vivek Chandra Amancha

Hi Alex,

can you please see this post http://stackoverflow.com/questions/30393106/tizen-notification-window-giving-abnormal-behaviour, the problem is explained with images here.

 

 

Alex Dem

Hi,
I think you win is transparent due NULL is first param in elm_win_add. In example where I have checked approach proposed above, naviframe was placed above (widgets structure in app was: win->conform->layout->navirame), 
In other examples win is created with elm_win_util_standard_add (but this way is not applicable for your case,  as  you need ELM_WIN_NOTIFICATION window type)

Just add backround (on win or on conform) with elm_bg_add, something like this for win:
    ad->bg = elm_bg_add(ad->win);
    evas_object_size_hint_weight_set(ad->bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
    elm_win_resize_object_add(ad->win, ad->bg);
    evas_object_show(ad->bg);

You could also try to assign lockscreen wallpapper with elm_bg_file_set.
Alexey.

Vivek Chandra Amancha

I'm getting simultaneous black and transparent backgounds on doing this??

Alex Dem

When I have checked: I just have created 'win' widget with this method in some native examples:(Calculator,UI Controls).  It was ok.
Alexey.

Vivek Chandra Amancha

Can I have two windows in an Native application, for instance I've created a UI Builder Native application and I wanted to add a new window to it???

Alex Dem

Hi,
Just fyi: It is not problem to create 2 or more windows and place some containers on them.
Just create windows with elm_win_add or use elm_win_util_standard_add (for ELM_WIN_BASIC ) . For window of ELM_WIN_BASIC type you could use elm_win_lower & elm_win_raise to hide/show window.
but for ELM_WIN_NOTIFICATION type looks like hide/show is not appliacble. I was able only destroy such window with evas_object_del.
But I able to check on Win 64 SDK without UI Builder.
Alexey.

Vivek Chandra Amancha

Can we have a window in Which the even the system dialogs like power off window doesn't gets showed over my window???

Jin Yoon

No, it's hard to resize your window less than full.

There is a way to resize it, but it's internal usage.

Vivek Chandra Amancha

Can we have a window in Which the even the system dialogs like power off window doesn't gets showed over my window???

Alex Dem

Hi,
afaik, it is impossible.
Alexey.

Alex Dem

Regarding custom lock screen: I did not face such possibility.
Alexey.

Alex Dem

Hi,
Just fyi: It is not problem to create 2 or more windows and place some containers on them.
Just create windows with elm_win_add or use elm_win_util_standard_add (for ELM_WIN_BASIC ) . For window of ELM_WIN_BASIC type you could use elm_win_lower & elm_win_raise to hide/show window.
but for ELM_WIN_NOTIFICATION type looks like hide/show is not appliacble. I was able only destroy such window with evas_object_del.
But I able to check on Win 64 SDK without UI Builder.
Alexey.

Vivek Chandra Amancha

Thanks Alex, I just created two saperate windows instead of using views which solved my problem. 

Mosharraf Hossain

Hi Alexy ,
How can I add  security check in my Custom Lock Screen.
That means during unlock the lock screen a security check will be promped.
Is there any API available in Tizen 2.3.

Alex Dem

Hi,
Do you mean: if you set pin/password lock screen type first, like here:
https://developer.tizen.org/forums/native-application-development/how-set-pin-screen-lock-type-0
How to input pin/password and check it on your custom lock screen ?
Alexey.

Jin Yoon

Yes, right.

It's not opened to use PIN / Password with a customized lockscreen on Tizen 2.3.

If you need to lock with password or other methods,

you need to implement it all in your lockscreen.

Best regards, Jin.

Mosharraf Hossain

First I want to set the Screen Lock type. It can be set in  either PIN or Password.
Then want to Input PIN/PASSWORD and check it on my Custom Lock Screen.
How can I set the Custom Lock Screen  type  and How to Input PIN/PASSWORD to check it.
Mosharraf.


 

Alex Dem

Hi,
I did not face api which allow to extract pin or password (pasword which was set in Settings)
I think it is impossible.
Alexey.