我想在锁定屏幕上显示覆盖活动,而无需在长按应用程序快速设置图块时输入密码。这是我的代码:
<activity
android:name=".PopupActivity"
android:excludeFromRecents="true"
android:launchMode="singleInstance"
android:taskAffinity=""
android:theme="@style/TransparentDialogTheme"
android:exported="true"
android:showOnLockScreen="true">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES"/>
</intent-filter>
</activity>
当我长按图块时,它会要求输入密码。你有什么想法吗?
我还成功在锁屏上显示了我的叠加层,但无法从快速图块中启动它。
如果不可能,我将不得不寻找锁屏底部按钮小部件,因为 sdk 34 允许自定义,但如果我可以保留 sdk 33 支持,那就太好了。
谢谢你
你想通了吗?