فاطمه وطن دوست
چهارشنبه 01 مهر 1394, 17:33 عصر
سلام برای ارسال تصویر( استیکر ) به تلگرام من این قسمت و مشکل دارم. چی باید نوشت؟
shareIntent.setPackage("com.telegram");
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.setType("image/png");
Uri imageUri = Uri.parse("android.resource://com.fvd.f_vatanduost.os/"+R.drawable.salam);
shareIntent.setPackage("com.telegram");
shareIntent.putExtra(Intent.EXTRA_STREAM, imageUri);
shareIntent.putExtra(Intent.EXTRA_TEXT, "Hello, This is test Sharing");
startActivity(Intent.createChooser(shareIntent, "Share"));
shareIntent.setPackage("com.telegram");
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.setType("image/png");
Uri imageUri = Uri.parse("android.resource://com.fvd.f_vatanduost.os/"+R.drawable.salam);
shareIntent.setPackage("com.telegram");
shareIntent.putExtra(Intent.EXTRA_STREAM, imageUri);
shareIntent.putExtra(Intent.EXTRA_TEXT, "Hello, This is test Sharing");
startActivity(Intent.createChooser(shareIntent, "Share"));