i am using below code to share content from my android app which shows webview page to whatsapp.
it works just fine except one issues. it shares complete link including whatsapp://send?text= i want only content to be shared.
Uri uri = Uri.parse(url);
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "" + uri);
sendIntent.setType("text/plain");
sendIntent.setPackage("com.whatsapp");
startActivity(sendIntent);
i tried using replace for replacing the whatsapp://send?text but it gives error that replace(string,string) is undefined.
is there any better way to achieve this