screen-lock

Ubuntu: Do NOT lock the screen when pressing Super+L [closed]

时间秒杀一切 提交于 2021-02-07 05:10:43
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question Whenever I press Super+L (or Win+L ) on my Ubuntu 14.04 Desktop, the screen gets locked. I would like to disable this behaviour. In System Settings->Keyboard->Shortcuts->System there is a shortcut configured for Lock screen: Ctrl+Alt+L . It works. But I couldn't

Ubuntu: Do NOT lock the screen when pressing Super+L [closed]

拈花ヽ惹草 提交于 2021-02-07 05:10:39
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question Whenever I press Super+L (or Win+L ) on my Ubuntu 14.04 Desktop, the screen gets locked. I would like to disable this behaviour. In System Settings->Keyboard->Shortcuts->System there is a shortcut configured for Lock screen: Ctrl+Alt+L . It works. But I couldn't

Is it possible to hide all the controls when screen is locked? - objective c

戏子无情 提交于 2019-12-31 05:26:06
问题 I want to hide all the controls on the locked screen when an app is playing in the background. However, I want the audio related information to be displayed all the time. I read about MPRemoteCommandCenter but we can't implement the below code because when you try to disable all then the screen starts showing 3 controls (toggle button, next track, previous track) MPRemoteCommandCenter *rcc = [MPRemoteCommandCenter sharedCommandCenter]; [[rcc skipForwardCommand] setEnabled:NO]; [[rcc

Could not re-enable the KeyGaurd once disabled it

妖精的绣舞 提交于 2019-12-24 01:06:57
问题 I have write below code to toggle the KeyGaurd of my android phone using a toggle button. but I am facing an strange behavior. it disables the keygaurd successfully but. not re-enabling. btnToggleLock.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { if (btnToggleLock.isChecked()) { toast.cancel(); toast.setText("Unlocked"); toast.show(); Log.i("Unlocked", "If"); KeyguardManager myKeyGuard = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);

avplayer doesn't pause when clicked on pause button if screen is locked

…衆ロ難τιáo~ 提交于 2019-12-23 15:31:36
问题 If the app is playing the audio and phone screen is locked then control screen is shown as below. I am not able to take any action on avplayer In my appdelegate I implemented: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { MPRemoteCommandCenter *rcc = [MPRemoteCommandCenter sharedCommandCenter]; [[rcc skipForwardCommand] setEnabled:NO]; [[rcc skipBackwardCommand] setEnabled:NO]; [[rcc nextTrackCommand] setEnabled:NO]; [[rcc

avplayer doesn't pause when clicked on pause button if screen is locked

我的未来我决定 提交于 2019-12-23 15:27:07
问题 If the app is playing the audio and phone screen is locked then control screen is shown as below. I am not able to take any action on avplayer In my appdelegate I implemented: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { MPRemoteCommandCenter *rcc = [MPRemoteCommandCenter sharedCommandCenter]; [[rcc skipForwardCommand] setEnabled:NO]; [[rcc skipBackwardCommand] setEnabled:NO]; [[rcc nextTrackCommand] setEnabled:NO]; [[rcc

Programmatically detect whether iOS passcode is enabled or not

感情迁移 提交于 2019-12-17 17:32:14
问题 Rather than build a passcode directly into my app and potentially require the user to enter a passcode twice (once for the device and again for my app); I thought I might out-clever myself and do something along the lines of: if (device has passcode) continue into my app else make user enter my app passcode I don't want to set the device passcode, I don't want to force a screen lock, not encrypting anything - all I really want is an API just to detect if a device passcode is in effect.

How to prevent Screen lock ios with Qt

白昼怎懂夜的黑 提交于 2019-12-06 09:06:35
问题 I want to develop an app in Qt for iOS that contains a map. During the use, the screen lock of the phone should be disabled. But I can't find any solution how to prevent the screen lock in iOS using Qt. How can be done that? 回答1: You must use the native iOS api. You can compile ObjC++ code directly with the clang compiler in your Qt application. So you can mix .cpp and .mm (ObjC++) files. QtCreator and qmake support this via the OBJECTIVE_SOURCES keyword. In a yourclass.mm implementation:

unable to detect shake event when my phones screen is off in android

天涯浪子 提交于 2019-12-04 15:49:42
问题 In my application I want to detect the shake event and I'm using SensorEventListener, the code is working fine when my activity is running in foreground. But when I press the lock button of the phone to lock the screen, the shake event can't be detected. I have tested my code on the Samsung gts5360. But the same code is working fine on sony ericssion xperia mini pro. Actually my Samsung phone is not detecting the shake events when I leave the device idle for approx. 45 seconds, after locking