使用共享意图如何共享链接中未包含的Png或Jpeg格式的图像。 共享意向
如何使用共享意图在社交媒体中共享图像
这是我的代码
public class DetailActivity extends AppCompatActivity {
private TextView dTitle;
private TextView dDesc;
private ImageView dImage;
private TextView dShare;
private AdView mAdView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_detail);
Intent DIntent = getIntent();
String title = DIntent.getStringExtra("textTitle");
String desc = DIntent.getStringExtra("textDesc");
String imageUrl = DIntent.getStringExtra("imageImage");
dTitle = findViewById(R.id.Posted_DTitle);
dDesc = findViewById(R.id.Posted_DDesc);
dImage = findViewById(R.id.Posted_DImage);
dShare = findViewById(R.id.Share_DThis);
dTitle.setText(title);
dDesc.setText(desc);
Glide.with(this).load(imageUrl).into(dImage);
dShare.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});
}
}
请告诉我如何共享此详细信息