单击按钮时,我想返回上一个运行的应用程序,就像 android 或 Alt+Tab 上的后退按钮一样。有没有办法做到这一点?
问问题
93 次
1 回答
1
There is no programmatic way to the last running app specifically. However, if you know what the app is, you can activate it using a protocol handler, if it has one. E.g. If you got activated because of some flow, and you know you want to return to AppB, and AppB supports a protocol, you can use the launcher API to launch: "Appb://foo", and that app will open.
于 2013-02-06T15:41:23.930 回答