Share Link Via Intent

 Intent sendIntent = new Intent();

 sendIntent.setAction(Intent.ACTION_SEND);

 AllNewsResponseModel dataModel=new AllNewsResponseModel();
 sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text");
// sendIntent.putExtra(Intent.EXTRA_TEXT, dataModel.getUrl() );
 sendIntent.setType("text/plain");

 startActivity(sendIntent);


Comments

Popular posts from this blog

Send Data Child to Parent Component - React Js

Hide , Show and Toggle in ReactJs

Importance Of Web Content In SEO.