How to filter specific apps for ACTION_SEND intent (and set a different text for each app)

后端 未结 12 1895
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 01:08

How can you filter out specific apps when using the ACTION_SEND intent? This question has been asked in various ways, but I haven\'t been able to gather a

12条回答
  •  悲哀的现实
    2020-11-22 01:42

    Intent emailIntent = new Intent(Intent.ACTION_SENDTO, 
        Uri.fromParts("mailto", "android@gmail.com", null));
    emailIntent.putExtra(Intent.EXTRA_SUBJECT, text);
    startActivity(Intent.createChooser(emailIntent, "Send email..."));
    

提交回复
热议问题