我正在寫一個基於sip
的呼叫應用程序。當有來電時,相應的活動會被觸發並顯示在鎖定屏幕下方。但用戶不知道有關通話...鎖定屏幕出現一段時間,屏幕關閉。即使通話仍在振鈴......鈴聲在整個持續時間內都處於活動狀態,但屏幕不顯示不顯示來電用戶界面。我需要找到一種方法來顯示適當的用戶界面,並在整個來電期間保持屏幕...[android] [lock_screen]在來電SIP呼叫期間解鎖待機屏幕
對於保持整個來電期間的屏幕上的部分我使用wakelocks .. 。但我無法擺脫鎖屏...
我研究後發現,可以使用KeygaurdManager
或WindowManager.LayoutParams
與像FLAG_KEEP_SCREEN_ON
,FLAG_DISMISS_KEYGAURD
,FLAG_SHOW_WHEN_LOCKED
和FLAG_TURN_SCREEN_ON
適當的標誌來解鎖手機......然而,這些不要在我的情況下工作...我讀了以下鏈接之一,當電話被密碼/模式鎖定時,無法解鎖手機...這是爲什麼我無法顯示我想要的用戶界面的問題?來電時如何工作?請建議我一些解決方案
我提及的是
How can I unlock the screen programmatically in Android?
How do I prevent an Android device from going to sleep programmatically?
的聯繫0unlock screen while in call android
Android: Turn screen ON and notify user
How to launch an activity when lock screen is enabled?
Android activity over default lock screen
Android Create An Activity That Float Over Lockscreen
Unlock Android phone programmatically?
How to display Activity when the screen is locked?
How to unlock the device when my activity will be launched programmatically?
Android: How to turn screen on and off programmatically?
How to show incoming call notification in android application
How to display Activity when the screen is locked?
How unlock and lock screen programatically in android
How to unlock the device when my activity will be launched programmatically?
How to notify SIP client when there is an incoming call on another phone
在此先感謝。
您是否得到了解決方案?如果您的問題得到解決,請告訴我該怎麼做對我非常有幫助。 – sri
你找到了解決方案嗎? – Vinay