How to Share Entire Android App with Share Intent

后端 未结 7 1015
名媛妹妹
名媛妹妹 2020-12-07 16:46

I have used Sharing-type intents before, such as:

Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType(\"plain/text\");
intent.putExtra(Intent.EXTR         


        
7条回答
  •  清歌不尽
    2020-12-07 17:24

    try this its working fine for me :

     Intent intent = new Intent();
        intent.setAction(Intent.ACTION_SEND);
        intent.putExtra(Intent.EXTRA_TEXT,"I suggest this app for you : https://play.google.com/store/apps/details?id=com.android.chrome");
        intent.setType("text/plain");
        startActivity(intent);
    

提交回复
热议问题