lurenjiauser
V2EX  ›  Android

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

  •  
  •   lurenjiauser · Jan 8, 2023 · 12634 views
    This topic created in 1396 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
    little_cup
    Jan 8, 2023
    1
    一个典型的 XY Problem…
    你提的问题实际上需要的解决方案是 PackageManager#queryIntentActivities
    lurenjiauser
    lurenjiauser
    OP
    Jan 8, 2023
    2
    非常感谢~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4861 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:40 · PVG 16:40 · LAX 00:40 · JFK 03:40
    ♥ Do have faith in what you're doing.