I\'m trying to share images with Facebook, twitter, etc using SHARE INTENT from Android.
I found code to send a image to the share intent, but this code
pass bitmap and compressFormat like (PNG, JPG, etc...) and image quality in percentage
public Uri getImageUri(Bitmap src, Bitmap.CompressFormat format, int quality) {
ByteArrayOutputStream os = new ByteArrayOutputStream();
src.compress(format, quality, os);
String path = MediaStore.Images.Media.insertImage(getContentResolver(), src, "title", null);
return Uri.parse(path);
}