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
Post a Comment