leegoogle
V2EX  ›  Android

三星华为手机文件打开方式问题

  •  
  •   leegoogle · Jun 25, 2018 · 12943 views
    This topic created in 2880 days ago, the information mentioned may be changed or developed.

    我在 AndroidManifest.xml 文件中使用 <intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <data android:scheme="file"/> <data android:mimetype="text/plain"/> <data android:mimetype="application/msword"/> <data android:mimetype="application/pdf"/> <data android:mimetype="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/> </intent-filter> 想把我开发的 app 添加到文件打开方式列表中,但是三星和华为手机并没有在打开方式列表中出现我的 app。请问大家有遇到过吗?

    1 replies    2018-06-25 15:11:01 +08:00
    leegoogle
        1
    leegoogle  
    OP
       Jun 25, 2018
    找到了 添加一个 <data android:scheme="content" /> 就解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5885 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 03:16 · PVG 11:16 · LAX 20:16 · JFK 23:16
    ♥ Do have faith in what you're doing.