Sharing text to WhatsApp having 2000 to 3000 characters in hindi font

后端 未结 2 1857
太阳男子
太阳男子 2021-01-24 18:39

I am trying to share a big text having a length of more than 3000 characters. However, I am unable to send all the text to WhatsApp.

My code shares only approximately 1

2条回答
  •  醉话见心
    2021-01-24 19:24

    try{
            Uri uriUrl = Uri.parse("whatsapp://send?text="+text+""); 
            Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);  
            startActivity(launchBrowser);
        }
        catch(ActivityNotFoundException e){
            Toast.makeText(getActivity(), "Whatsapp Not Installed.", 2000).show();
        }
    

    I was facing the same problem with Arabic text. Use this code. it worked for me.

提交回复
热议问题