【问题标题】:is there a way to create an app for floating window like samsung phone有没有办法为三星手机等浮动窗口创建应用程序
【发布时间】:2019-03-25 17:50:19
【问题描述】:

我正在创建一个应用程序,它将为非三星智能手机重新创建三星浮动窗口功能,

好吧,我发现一个线程表明这是可能的App inside an app 有人评论说使用意图启动应用程序并使用注入工具获得 x y 位置 因此我尝试使用意图启动应用程序的主要活动以在片段中运行,这听起来很愚蠢,而且它不起作用不要笑,

Instrumentation m_Instrumentation = new Instrumentation();
m_Instrumentation.sendPointerSync(motionEvent);

我真的想要一种打开已安装应用程序的方法,以便在任何可调整大小的片段或活动中打开。

【问题讨论】:

  • 问得好,但不需要自嘲的评论“好吧,这听起来很愚蠢,你这行不通,别笑”。别担心,没有人会笑;您需要做的就是简单而清楚地提出问题,您已经做到了。

标签: android


【解决方案1】:

我认为使用 vanilla android 重新创建三星浮动窗口是不可能的。

您可以尝试让Picture-In-Picture 做您想做的事情,或者Multi Window 可能适合您的用例。

【讨论】:

    猜你喜欢
    • 2010-09-18
    • 1970-01-01
    • 2013-08-26
    • 2011-03-25
    • 2023-03-26
    • 1970-01-01
    • 2014-08-31
    • 1970-01-01
    • 2020-01-24
    相关资源
    最近更新 更多