How can I programmatically open/close notifications in Android?

前端 未结 7 2439
无人及你
无人及你 2020-12-04 09:51

I\'ve searched everywhere, but can\'t find anything in the SDK or on Google on how to do this. I know it\'s possible because all the custom launchers are able to do it via a

相关标签:
7条回答
  • 2020-12-04 10:51

    How can I programmatically open/close notifications in Android?

    What you want cannot be done using the Android SDK.

    I know it's possible because all the cuustome launchers are able to do it via a button press (LauncherPro, ADW, etc).

    All of the "custom launchers" are bypassing the SDK, using a variation on the technique that @Yoni Samlan proposed in another answer to your question. Things that are not part of the SDK can be removed by device manufacturers, replaced by the core Android team in future releases, etc.

    I would argue that what you want should be possible via the SDK; otherwise, it really limits alternative home screen implementations. However, what you and I want does not count for all that much.

    0 讨论(0)
提交回复
热议问题