9
Resimlerimi WhatsApp üzerinden paylaşıyorum - ancak alıcıyı seçmem gerekiyor. Ben doğrudan biriyle paylaşmak ister bozkırBelirli bir alıcıya WhatsApp aracılığıyla görüntü gönderme (Android)
public static void shareImage(Context context,String path, String text, String otherAppPackage){
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/*");
share.setPackage("com.whatsapp");
share.putExtra(android.content.Intent.EXTRA_SUBJECT, getSubject(context));
if (text!=null){
share.putExtra(Intent.EXTRA_TEXT,text);
}
if (path!=null){
share.putExtra(Intent.EXTRA_STREAM,
Uri.fromFile(new File(path)));
}
context.startActivity(Intent.createChooser(share, context.getString(R.string.share_via)));
}
: İşte benim kodudur. Bazılarınız bunu nasıl yapabilirim biliyor mu. Teşekkür
[WhatsApp üzerinden mesaj gönderme] olası yinelenen (http://stackoverflow.com/questions/15462874/sending- message-through-whatsapp) – rds
bir şey buldu? –