启用任务锁定后启动另一个应用程序 [英] Start another app while task-locking is enabled

查看:98
本文介绍了启用任务锁定后启动另一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了本指南来激活我作为设备所有者的应用.因此,我可以激活任务锁定.这与我希望Android的行为非常接近.

I used this guide to activate my app as device owner. So, I can activate task locking. This is very close at how I want Android to behave.

是否可以从设备拥有的应用程序中启动一个或多个特定的第三方应用程序,而无需停用任务锁?

Is it possible to start one or more specific third-party-apps out of the device owning app and without deactivating the task-lock?

如果没有,那么可以通过一些解决方法来解决?我正在考虑停用任务锁,启动另一个应用程序,然后远程激活另一个应用程序的任务锁.

If not, is it possible with a little workaround? I am thinking about deactivating the task-lock, starting the other app and then activating task-lock for the other app remotely.

谢谢.

推荐答案

如果第三方活动

A locked task can only launch third-party activities if their launch flags allow them to be launched into the same task. If you try to launch an activity in a new task, it'll print a warning to logcat and the user will see nothing.

AFAIK,没有一般的方法来锁定另一个任务.另一个任务必须设计为根据某种意图锁定自身.

AFAIK, there is no general way to lock another task. The other task would have to be designed to lock itself in response to some intent.

这篇关于启用任务锁定后启动另一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆