Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ボタンをクリックすると、デバイスのロック画面を表示したい。私はたくさん検索して、それができることを知ってDevicePolicyManagerいますが、それを行う方法がわかりません。また、多くの例を見つけましたが、どちらも(エラーなしで)ロック画面を表示しませんでした(たとえば、 thisまたはthis)を使用してデバイスをロックする方法はDevicePolicyManager?
DevicePolicyManager