Questions tagged [lockscreen]

1

votes
1

answer
315

Views

visibilitychange in mobile safari standalone mode

The Visibility API doesn't work in standalone mode on iOS. I need to know if the phone was unlocked with my app in the foreground so that I can check for an update, but nothing seems to work. I don't get the visibilitychange event. document.hidden is false, and document.visibilityState is 'visi...
Jamie Aurand
1

votes
1

answer
37

Views

How to launch a lock screen that prevents the access to an application when it starts?

I'm trying to create a lock screen that prevents access to an application when it starts but I can't find answers. I'm not sure how to implement the code. Also in most cases it's mentioned that it was deprecated in android 5.1 and higher. (I´m working in android 7.1) These are the links: Android,...
Marx
1

votes
0

answer
133

Views

Not able to set lockscreen album art

I'm building an audio player. I implemented a background service for this purpose. Now, I'm trying to use mediasession for displaying the album art of the audio as lockscreen wallpaper. I have successfully implemented the lockscreen playback controls and notification but I'm not able to showthe alb...
Rektirino
1

votes
0

answer
517

Views

Set LockScreen Wallpaper Programmatically Android

I am building a wallpaper application using unsplash api. I have fetched the images and displayed in the app. I have a button which shows a dialog to set as home screen (works fine) or lock screen wallpaper. The problem here occurs when I try to set the lock screen wallpaper, it doesn't change the i...
Andromeda
1

votes
2

answer
291

Views

Android activity over lock screen

I need help with my project , I'm supposed to make a BroadcastReceiver fires up a full screen activity over current lock screen . I tried this on my activity : protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.i('onCreate','success'); PowerManager pm = (Pow...
Sohaib
1

votes
0

answer
38

Views

Change the iOS lock screen audio poster when playing from web

I am building a website that plays an icecast mp3 stream using jPlayer and I'd want it to display the poster when listening the stream and the phone is locked. jPlayer generates the following code which I guess it's the code that iOS uses for playing the audio, correct me if I am wrong.
spacebiker
1

votes
1

answer
88

Views

How can Next lock screen (Microsoft) bypass the system lock screen with fingerprint?

I'm currently developing a lock screen application. I have used Next lock screen and realised that it can bypass the system lock screen if fingerprint is enabled. I have done several reseach to find out the way. Unfortunately, I could not do that. But I have some conclusions based on my research: Ne...
Khoa Phung
1

votes
0

answer
137

Views

android FLAG_SHOW_WHEN_LOCKED equivalent

I have floating window runned as service. Floating window is LinearLayout with some LayoutParams. I displayed this window on incomming call screen (even if phone is locked). Therefoe I set as LayoutParam flag FLAG_SHOW_WHEN_LOCKED. But this is deprecated. How can I show my floating window on lockscr...
spajdo
1

votes
0

answer
75

Views

Occurs on the lock screen [ Performing stop of activity that is already stopped : {package.LockScreenActivity} ]

I implemented the Android lock screen app. An RuntimeException occurred while executing the LockScreenActivity(Regardless of the Android version). But this Exception is occurs very intermittentl and it is not reported to Crashlytics. The Exception content is : 2018-11-20 16:09:10.037 7657-7657/hanmo...
hanmolee
1

votes
0

answer
29

Views

iOS: keyboard in notification content extension is pushing up the content

We have an iOS app that receives push notifications when the user gets a new message and we implemented a notification content extension to render this message (html) on the lockscreen. We have enabled user interaction thus the user can tap inside the content without dismissing/opening the app. For...
Lucian S.
1

votes
0

answer
46

Views

Create tansparent activity over lockscreen without setting windowIsTranslucent

I am creating a transparent activity over lockscreen by setting windowIsTranslucent to true in the themes directory. When this transparent activity is launched over any activity, I am seeing the following error log: E/ActivityThread: Performing stop of activity that is already stopped This is a sim...
Mangalashri
1

votes
0

answer
57

Views

How to enable show on lock screen permission in Redmi 5 programatically

I want to open activity through push notification, but in mi devices it is not opening due to 'Show on lock screen' permission of, how to enable this programmatically.
Siva Prasad
1

votes
0

answer
33

Views

Android - prevent lock screen FaceWidget “Music controller” from overriding my music player app notification

I tried with no luck to add custom commands to music controller on lock screen and AOD screen, thus I decided to make a custom notification (at least for the lock screen). The problem is, that if user has a FaceWidget (settings > Lock Screen > FaceWiget > 'Music controller' turned on, then it takes...
Jure S
1

votes
0

answer
30

Views

Kotlin - How to display a LocationSettingsRequest dialog, while device locked

I have an activity, that is trigered by an event and I use this code, to be able to display it while my device is locked. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) { setShowWhenLocked(true) setTurnScreenOn(true) val pm=getSystemService(Context.POWER_SERVICE)as PowerManager pm.newWakeL...
Martin Grošelj
1

votes
1

answer
36

Views

Run application on Lock Screen at the center of screen

I have a UWP music player application. I want this application to run in lock screen (Windows + L). So is there any way to show specific XAML page when screen is locked. Currently I am using toast notifications to do this. but problem with toast notification is that I don't have much control on UI.
Pavan Tiwari
1

votes
1

answer
2.9k

Views

how to develop a replacement for the android lock screen [duplicate]

This question already has an answer here: Custom Lock Screen Implementation Techniques 1 answer I need to put my app on the lock screen (android 2.2)! I think there are two options for do this: Develop an app to replace android's lock screen. This app whould be called when the off button is pressed...
Dayvid Oliveira
1

votes
1

answer
623

Views

Continue to read iPhone accelerometer data while screen is locked (manually)

I know this issue has been discussed before as in: Enable iPhone accelerometer while screen is locked I tried the solution mentioned in the post, including adding the DeepSleepPreventer module, as well as enabling proximity sensor as suggested in the answer Enable iPhone accelerometer while screen...
Wanmin Wu
1

votes
2

answer
1.2k

Views

Continue audio playback when iPhone is locked

How can I continue an audio playback in iPhone when it auto-locks or the user locks the phone? I already tried session = [AVAudioSession sharedInstance]; [session setCategory:AVAudioSessionCategoryPlayback error:NULL]; but that doesn't seem to work.
gabriel_vincent
1

votes
1

answer
1.2k

Views

How to display a Textview in the lock screen?

I want to display a message in the lock screen like this but i don't know exactly how to develop this please help :)
emna
1

votes
1

answer
557

Views

NFC Chip is not activated in lockscreen after Nexus S update to ICS

i am having trouble with my app on nexus s after updating to ics. My app reads all RFID-tags scanned while the lockscreen is activated (it's about getting the rfid-serial-number). This worked out well on 2.3.6. start app put device in sleep mode logcat-message from NfcService: 'NFC-C OFF, disconnect...
user1341240
1

votes
1

answer
1.5k

Views

Android disable all hardware keys for lockscreen app

I am coding a custom lockscreen app for android. I have managed to disable the back button. But the home button and the recent apps button on ICS proved not to be as easy. I searched around and came up with: @Override public void onAttachedToWindow() { // TODO Auto-generated method stub this.getW...
kevdliu
1

votes
1

answer
666

Views

SlidingTab on Lock Screen vibrates when unlocking - regardless of the global settings about haptic feedback

When unlocking my android 2.3.3 phone at the simple lock screen it vibrates once the slider is touched and a second time a little longer when the slider has been pulled completely to the other side. I found it a little annoying and so I thought I could somehow switch it off in the settings as I can...
NilsB
1

votes
2

answer
2.1k

Views

AOSP: where can I find the layout of the new clock (fonts and size)?

As the new clock layout in Android 4.2 is awesome, I would like to use it as a basis for my apps. Thanks to the beauty of Open Source, the source code is available, but I have been browsing it for hours and never found it. I know posting no code on StackOverflow is not cool, but I strongly believe t...
Waza_Be
1

votes
1

answer
1.2k

Views

Is it possible to set the orientation of the lock screen to landscape in Nexus 7?

I want the home screen and the lock screen to be in the landscape mode. I used this app and able to make the home screen to stay in landscape mode but the lock screen is still in the portrait mode. I would like to know how this app changing the orientation of the home screen and is it possible to ch...
Ankit Aggarwal
1

votes
3

answer
2.4k

Views

Show Dialogfragment on lock screen

I'm trying to show a DialogFragment over lock screen. This has to happen when a user triggers an action via the new keyguard widget function. In particular it's a timepicker dialog that's shown, but the user only sees it if he unlocks the screen. How do i manage to show it even if the screen's locke...
user1806772
1

votes
1

answer
561

Views

Android 4.2 lock screen only widget not possible. Bug?

When I define an appwidget as lock screen only (android:widgetCategory='keyguard' in the widget info xml file) it can still be selected as a home screen widget. Runtime checks show that widgetcategory=2 (=lock screen only), but when on the home screen it has category 1 (=home screen). Just want to k...
tvo
1

votes
1

answer
206

Views

How to differentiate SCREEN_ON and PHONE_STATE broadcast receiver

I have two broadcast. One is for screen on/off and second for phone state. I want to show my activity to user if screen is on but not if it is phone call. How to manage this any help will be appreciated..
sandy
1

votes
1

answer
685

Views

How to dynamically add a lock-screen widget

Google Play Music app adds a special lock-screen widget dynamically when playing music (on Jelly Bean), and removes it after exit. This widget cannot be removed manually by dragging, and when I unlock my phone, it is always the top one besides other lock-screen widget. How to implement this special...
Oasis Feng
1

votes
1

answer
327

Views

Lockscreen widget android in android 3/4.1?

i want to add my widget in the lockscreen. According with the documentation i know that i have to do something like And the android:minSdkVersion is 17. I don't want create my app only for android 4.2 so is there a way to get around this situation?I mean something that check the android version and...
David_D
1

votes
1

answer
1.3k

Views

Android 4.2: Normal widget to lockscreen widget [closed]

Easy question: I have just created an analog clock widget with eclipse, now I'd just like to make this widget be a lockscreen widget, too. I want this widget to be used with the new lockscreen widget feature in android 4.2 I am no programmer yet, so please, specify the line of code to use and the fi...
GabMus
1

votes
1

answer
1.3k

Views

how to know User have entered wrong password or pattern? (android lock) [duplicate]

This question already has an answer here: patterns unlock attempts by a BroadcastReceiver in android 1 answer I want a service to look if user enters wrong pattern and number of that. I Googled it, but got nothing useful. some say it's impossible, because it's for Android system and inaccessible, a...
lvle
1

votes
2

answer
3k

Views

How to use LockScreen.SetImageUri to Set Windows Phone 8 Lock Screen Background

I have an image in IsolatedStorage, and I would like to programmatically set it as the device lock screen background. My problem is that I cannot get the correct path required by LockScreen.SetImageUri. From referencing http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206968(v=vs.105)....
Matthew
1

votes
1

answer
337

Views

Game freezes when screen gets locked and unlocked

I just wrote some small game, the problem is, everytime I lock the screen during the game and unlock it after that, the game freezes. I don't know why but it happens. Now i would like to know which method I have to change to set the game to paused or resume when the screen gets locked. Is there any...
user2410644
1

votes
2

answer
1.2k

Views

FLAG_SHOW_WHEN_LOCKED not working in latest version of 4.4.2

The main window of my app sets the FLAG_SHOW_WHEN_LOCKED and FLAG_DISMISS_KEYGUARD window flags to bring up the app window in front of the usual Android lock screen. The exact code follows getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_DISMIS...
kencorbin
1

votes
1

answer
252

Views

How to enable windows phone lock screen while debugging?

I am trying to figure out my bug, which occurs when lock screen is called automatically, but while debugging the auto lock screen is disabled. Does Visual Studio have an option to enable auto lock screen or something?
Jacek Grzelaczyk
1

votes
1

answer
196

Views

How to programly set the detail status for lock-screen using C#

I am new to WP 8.1 development, but I know C# quite well. I am developing a APP to display some personalized text on the lock screen, there is such app in the APP Store already, but I am want to use my own APP. The only thing is that I do not know how to change detailed status of an APP which will...
Chunde Huang
1

votes
1

answer
290

Views

iOS8 add image to push notification

Is there a way to add a small bitmap image in a push notification for display? The image does not have to be remotely downloaded, it can be accessed from my app bundle if that's even possible. This question has been asked before but for older os versions. Now the notification payload has increased t...
samonderous
1

votes
1

answer
517

Views

List View Widget not updating on lock screen

package com.Widget; import java.util.Random; import com.Launcher.LauncherActivity; import com.Widget.wifiwidget.R; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; i...
Prateek Arora
1

votes
1

answer
177

Views

How to create the special toast and swipe down on lock screen like Skype in win8.1?

In win8.1, we can swipe down on lock screen to open camera. And also can answer a Skype call from the lock screen. http://webwereld.nl/development/79224-skype-omzeilt-lockscreen-windows-8-1---update http://www.stckwt.com/index.php?route=product/product&product_id=137 I want to create a windows store...
翔 羽
1

votes
2

answer
481

Views

how to show widgets/ Custom layouts on lockscreen or on homescreen in Android 5.0

I want to show my custom layout on homescreen or on lockscreen but i could not find any working example in Android 5.0 (Lollipop). As suggested by @commonsware that this is not possible on 5.0 But how is this Next Lock Screen app is managing this on 5.0 I'd like to achieve something like this app,...
ARK

View additional questions