Home  >  Q&A  >  body text

android - 怎么判断当前所处的界面是本应用?我想通过这个实现当前应用内不显示悬浮窗,在其他任何地方都显示的功能

我想实现的是类似于桌面歌词的功能,网上看过其他的方法,但是好像弃用了,想知道最新的,能兼容到6.0的实现方法

PHP中文网PHP中文网2741 days ago450

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:39:01

    This is how to display a floating window?


    Since the questioner has modified the question description, I have added the answer to the question. I hope the questioner can choose the method that suits him
    6 ways to determine whether the app is in the foreground or the background

    reply
    0
  • Cancelreply