Empty intent chooser (No application can perform this action)

后端 未结 1 1023
甜味超标
甜味超标 2021-01-06 08:09

My intentchooser is on the basis of a whitelist (only a selection of applictions will show up in the intent chooser). The code is on the basis of another code wich does the

1条回答
  •  独厮守ぢ
    2021-01-06 08:41

    I got some feedback from an Android guru telling me the chooser should be defined with a working intent, for example the playstore or gmail or something. In theory you could supply the starting intent of your OWN application (you are sure that your own application is installed).

    Intent chooserIntent = Intent.createChooser(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=gmail")), "example");
    

    And later, that's why the list removes a single item from the list (you probably don't want your own application in the chooser).

    0 讨论(0)
提交回复
热议问题