lockscreen

Callkit , how to disable video button when locking screen?

怎甘沉沦 提交于 2019-12-07 16:48:32
问题 As new feature of iOS10, CallKit is powerful. When the screen is locked, how can I disable the "Video" Button ? like the pic bottom: example 回答1: You must set supportsVideo property in CXProviderConfiguration to NO. And non set supportedHandleTypes. 回答2: You can set CXProviderConfiguration class property "supportsVideo" to NO, like below. CXProviderConfiguration *configuration = [[CXProviderConfiguration alloc]initWithLocalizedName:@"app name"]; configuration.supportsVideo = NO; It will

How to make lock screen notification for media player

孤街浪徒 提交于 2019-12-07 05:09:39
问题 I am trying to get lock screen in the mobile I am able to get every thing work like notification and other things of my app but when I try to display the lock screen it is not working at all for android M. private void initMediaSession() throws RemoteException { if (mediaSessionManager != null) return; //mediaSessionManager exists ComponentName mediaButtonReceiver = new ComponentName(getApplicationContext(), MediaButtonReceiver.class); mediaSession = new MediaSessionCompat

How to overlay a layout on lock screen when in devices running Oreo and Pie

懵懂的女人 提交于 2019-12-07 01:52:21
问题 In my application i'm trying to overlay a layout with a service here when i'm running service it successfully executes and display the layout on lock screen when target devices is lower than oreo but when i'm trying to overlay the same from versions later than oreo it's not working however when i change the flag to Type_Application_Overlay as suggested in other answers it just display layout when screen is unlocked but i want to show it over lock screen i tried searching a lot but didn't find

show web site on Android lock screen

别来无恙 提交于 2019-12-06 15:27:37
I'm looking for a reliable way to let the Android user show a web site on the lock screen. This could be done in principle in 3 ways: Showing it on the native Android lock screen, but then they should be able to remove the native clock because my site is a world clock (you can see it at intelnav.50webs.com/world_time.html if you're interested). For all I know this can't be done. Using a 3rd party custom lock screen that allows this. Unfortunately I couldn't find a good one, and I did some searching. Writing a custom lock screen myself. There are some suggestions and even sample projects for

How to show SurfaceView on Lock Screen?

你离开我真会死。 提交于 2019-12-06 12:47:32
问题 I'm working to implement a lock screen just like the water ripple lock screen of Samsung Galaxy 3. I have finished the GLSurfaceView object. But there is a problem when I port it to Lock Screen. The SurfaceView couldn't be displayed on Lock Screen whose window type is TYPE_KEYGUARD. If I use setZOrderOnTop(true) to this SurfaceView, it Can be displayed, but it will overlay all other layers of Lock Screen, which is not my anticipation. This SurfaceView can display normally on normal

Activity in front of Lockscreen

南楼画角 提交于 2019-12-06 11:13:51
I want to create an activity in front of the lockscreen. I don't want to skip the keyguard completely. I tryed it with the TYPE_SYSTEM_OVERLAY flag but there I can't handel any events. It works with FLAG_SHOW_WHEN_LOCKED but then there is a black background and i want it like on this picture: An Activity without black background and event handling http://s1.directupload.net/images/130306/sctc586t.jpg It would be nice if it is like TYPE_SYSTEM_OVERLAY but with event handling. Is that possible? I read that it is not possible with TYPE_SYSTEM_OVERLAY to get any Events but is there maybe another

windowIsTranslucent changes lifecycle, but error occur when entering lock screen

a 夏天 提交于 2019-12-06 10:19:14
问题 I'm experiencing that <item name="android:windowIsTranslucent">true</item> is changing the way Android Lifecycle is handled. I guess it's doing that because if the window is translucent, you can still see the underlaying activity. Let's call it activity A. Let's go through the following example where we have another activity on top of activity A. This other activity is called B. Activity A Started - This activity is the first activity Activity A Stopped - Now you start activity B. Activity B

How to lock the Screen customly? Just like WaveSecure in Android

大兔子大兔子 提交于 2019-12-06 06:56:01
I want to do a demo just like WaveSecure, which win Android Develop Challenge 2 with a third place. Now I have a problem in locking the screen customly, so I want to know how WaveSecure achieve its locking function, as the following picture show: When the mobile is locked, WaveSecure can require customer to input their own password. So I think WaveSecure must replace Android's original locking function. And I also google it, but I didn't find anything helpful. I only find two packages may be helpful. They are: android.app.KeyguardManager android.os.PowerManager But after I reading the Android

Android Lockscreen with FingerPrint support

纵然是瞬间 提交于 2019-12-06 03:25:45
I have an app that serves as custom lockscreen and I want to preserve unlock functionality using fingerprint. I want to unlock my phone when device screen is off or when I am looking at my lockscreen. The lockscreen is an activity that runs above all other components. If device is idle (screen is off) and I use fingerprint, phone turns on but my lockscreen is still visible. If I use fingerprint when my lockscreen is shown, nothing happens, the sensor is not active. If I implement listening for fingerprint with FingerprintManager by myself I am able to listen for successful fingerprint use, but

Callkit , how to disable video button when locking screen?

落爺英雄遲暮 提交于 2019-12-05 21:38:52
As new feature of iOS10, CallKit is powerful. When the screen is locked, how can I disable the "Video" Button ? like the pic bottom: example You must set supportsVideo property in CXProviderConfiguration to NO. And non set supportedHandleTypes. You can set CXProviderConfiguration class property "supportsVideo" to NO, like below. CXProviderConfiguration *configuration = [[CXProviderConfiguration alloc]initWithLocalizedName:@"app name"]; configuration.supportsVideo = NO; It will disable video feature. Update: Set CXCallUpdate property " hasVideo " to NO. and remove remoteHandle also. Note: If