跳转到相册选择图片
btn_jump.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
mResultLauncher.launch(intent);
}
});
发送带图片的彩信
private void sendMms(String phone, String title, String message) {
Intent intent = new Intent(Intent.ACTION_SEND);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);
intent.putExtra("address", phone);
intent.putExtra("subject", title);
intent.putExtra("sms_body", message);
intent.putExtra(Intent.EXTRA_STREAM, picUri);
intent.setType("image/*");
startActivity(intent);
}