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

后端 未结 2 1851
太阳男子
太阳男子 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.

    0 讨论(0)
  • 2021-01-24 19:36

    We don't know which method you are using but there is 2 methods and there is not a character limitation for these 2 methods. You can read and learn much about these methods:

    1. WhatsApp FAQ - I'm an Android Developer, how can I integrate WhatsApp with my app?
    2. Android Developers page - Sending Simple Data to Other Apps

    Good luck.

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