Languages

Menu
Sites
Language
Calling lock screen using "org.tizen.lockscreen" not working.

Hello!

I am trying to lock screen programatically by launching "org.tizen.lockscreen".

But this is not working in Tizen 2.2.1. Here is my code snippet

===========================================

function lockScreen() {
    tempAlert("This device is locked from FMM server!",2000);
    tizen.application.launch("org.tizen.lockscreen",onsuccess);
}

==========================================

I have also added privilege "http://tizen.org/privilege/application.launch".

Is there something I am missing? Is app ID "org.tizen.lockscreen" is correct?

Please help!

Responses

6 Replies
Alex Dem

Hi,
AFAIF for M1/M2 devices appId is 'com.samsung.draglock'.
For native app there is api to extract appIDs for home and lockscreen apps:
https://developer.tizen.org/dev-guide/2.2.1/org.tizen.native.appprogramming/html/guide/system/settings_info.htm
Alexey.
 

Jitin Arora

Hello!

I am trying to lock screen programatically from java script by using following code:

 tizen.application.launch("com.samsung.lockscreen",successCB,null); 

It is not launching lockscreen while if I try follwing for calculator application:

 tizen.application.launch("com.samsung.calculator",successCB,null);   , It launches successfully.

Please help me for same.

Thanks

 

 

But this is not working in Tizen 2.2.1. Here is my code snippet

===========================================

function lockScreen() {
    tempAlert("This device is locked from FMM server!",2000);
    tizen.application.launch("org.tizen.lockscreen",onsuccess);
}

==========================================

Jitin Arora

Please ignore previous post due to wrong editing.

 

Hello!

I am trying to lock screen programatically from java script by using following code:

 tizen.application.launch("com.samsung.lockscreen",successCB,null); 

It is not launching lockscreen while if I try follwing for calculator application:

 tizen.application.launch("com.samsung.calculator",successCB,null);   , It launches successfully.

Please help me for same.

Thanks

Alex Dem

Hi,
For emulator & Samsung Z1 device(official) AppId is com.samsung.lockscreen
But I was unable to raise lock screen over my sample app.
Note: I have used app control native api app_control_send_launch_request for checking. api call was succesful, but nothing happened.
Maybe this way is prohibited
Alexey

Vikram

Hi,

It looks like that lockscreen is working as a system daemon and can be activated by lcd off/on event internally. so it's not allowed to launch this process by api.

Alex Dem

Hi, looks so.
I did not find another way to initiate lock screen appearance for Web:
    tizen.power.turnScreenOff();
    tizen.power.turnScreenOn();
But it is not good approach.
Alexey.