zhwguest
V2EX  ›  Android

除了使用手机厂商或者型号来间接推测,有直接的办法获取手机上的应用商店包名么?

  •  
  •   zhwguest · Jan 8, 2023 · 11923 views
    This topic created in 1234 days ago, the information mentioned may be changed or developed.

    我知道可以 StartActivity 的时候指定 scheme 是 market 。但是我的程序想在启动之前就知道会启动谁...

    2 replies    2023-01-08 22:49:53 +08:00
    little_cup
        1
    little_cup  
       Jan 8, 2023
    一个典型的 XY Problem…
    你提的问题实际上需要的解决方案是 PackageManager#queryIntentActivities
    zhwguest
        2
    zhwguest  
    OP
       Jan 8, 2023
    非常感谢~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2984 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 14:57 · PVG 22:57 · LAX 07:57 · JFK 10:57
    ♥ Do have faith in what you're doing.