在我的应用中,有没有办法将用户重定向到特定设置“页面”?我的应用程序可用作锁屏应用程序,因此我希望能够将用户直接重定向到Android设置的“锁定屏幕”部分。 (最好通过按钮或类似的东西)
答案 0 :(得分:4)
ACTION_SECURITY_SETTINGS意图:
Intent intent = new Intent(Settings.ACTION_SECURITY_SETTINGS);
startActivity(intent);
答案 1 :(得分:4)
我设法在旧的Stackoverflow-post from a while back中找到了正确的答案。代码段现在看起来像这样:
Intent intent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD);
startActivity(intent);
答案 2 :(得分:0)
C:\xampp\htdocs\notifications>composer require brozot/laravel-fcm
Using version ^1.3 for brozot/laravel-fcm
./composer.json has been updated
Running composer update brozot/laravel-fcm
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- brozot/laravel-fcm[1.3.0, ..., 1.3.1] require illuminate/support 5.*|^6 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev] but these were not loaded
, likely because it conflicts with another require.
- Root composer.json requires brozot/laravel-fcm ^1.3 -> satisfiable by brozot/laravel-fcm[1.3.0, 1.3.1].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
注意标志。这些是可选的,但如果之前打开过的设置屏幕从屏幕中删除是必要的(如果您的应用程序想要打开多个设置屏幕,这是必需的)。