Intent filter for files only

前端 未结 2 1866
梦谈多话
梦谈多话 2021-02-13 16:48

in our app, we want to appear in the \"Share via\" menu. So we added this intent-filter to our activity :


    

        
2条回答
  •  旧时难觅i
    2021-02-13 17:22

    1. If you want to be invoked for any mime type, don't place a single mine type in the filter
    2. scheme="file" is the answer to run only on files. Now if the 3rd party applicaiton pass the data as content, then it is (by defiinition) not a file any more

提交回复
热议问题