Soru & Cevap

Share Button ...

16.07.2014 - 01:41

Merhaba arkadaşlar uygulamamın içine paylaş butonu eklemeye çalışıyorum.Paylaşabileceğim seçenekler geliyor whatsupp seçiyorum kişiyi seçiyorum "Paylaşım başarısız , lütfen tekrar deneyin" Diyor. Kodum aşşada yardımcı olabilirmisiniz ?

String imagePath = Environment.getExternalStorageDirectory()
                        +"/" + imageName;
                File imageFileToShare = new File(imagePath);
                Toast savedToast = Toast.makeText(getApplicationContext(), 
                        imagePath, Toast.LENGTH_SHORT);
                savedToast.show();
                Uri uri = Uri.fromFile(imageFileToShare);
                Intent shareIntent = new Intent(Intent.ACTION_SEND);  
                        shareIntent.setType("image/jpeg");  
                        shareIntent.putExtra(Intent.EXTRA_STREAM,uri);  
                        startActivity(Intent.createChooser(shareIntent,"Share Image"));

49 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

picture-103767-1491764696.jpg
elfaybkeasln
13.07.2017 - 09:15

https://www.youtube.com/watch?v=U39RsxrWhIA

https://www.youtube.com/watch?v=NdtE_1u0cq4