1

I have an Android Web View app and i have added share action in it. but i want it to send text from my web view to any app.

please help me to fix this issue.

here is the code it is share the DEMO XYZ text But i want to share this text which is showing in href

<a href="share://send?text=hello this is demo testing">Share</a>

how can i do this please help me.

 if (url!=null && url.startsWith ("share://"))
    }
    Intent intent = new Intent (Intent.ACTION_SEND);
    intent.setType("text/plain")
    intent.putExtra (Intent.EXTRA_TEXT,"DEMO XYZ");
    view.getContext().startActivity(Intent.createChooser(intent,"share"));
    return true;
    }

In my website link i am using

<a href="share://send?text=hello this is demo testing">Share</a>
K.Os
  • 5,123
  • 8
  • 40
  • 95
user1796164
  • 131
  • 1
  • 4
  • 14

0 Answers0