V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zhwguest
V2EX  ›  Android

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

  •  
  •   zhwguest · Jan 8, 2023 · 11851 views
    This topic created in 1211 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   ·   2651 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 03:37 · PVG 11:37 · LAX 20:37 · JFK 23:37
    ♥ Do have faith in what you're doing.