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

How to Create an Email Sender AI Agent Using n8n (Step-by-Step Guide)

Style in React Native | Style Type

How to make Grid in React Native