8UbNRbE5c9tvj2
V2EX  ›  问与答

安卓应用怎么从后台唤醒?

  •  
  •   8UbNRbE5c9tvj2 · Sep 12, 2024 · 1372 views
    This topic created in 629 days ago, the information mentioned may be changed or developed.
    我正在开发一款安卓 app ,有个功能是希望定时唤醒 app 到前台 以及 用户按两下电源键唤醒到前台。

    但我试了网上的一些方法(主要是通过建立通知)无法做到。电池限制也取消了的。

    请问有什么别的方法吗
    3 replies    2024-10-15 10:27:52 +08:00
    aaronzhang404
        1
    aaronzhang404  
       Sep 12, 2024
    把包名改为 com.tencent.mm 就可以了
    programdogs251
        2
    programdogs251  
       Sep 12, 2024
    8UbNRbE5c9tvj2
        3
    8UbNRbE5c9tvj2  
    OP
       Oct 15, 2024
    @aaronzhang404 有啥正经办法不 哈哈
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1606 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:37 · PVG 00:37 · LAX 09:37 · JFK 12:37
    ♥ Do have faith in what you're doing.