2016-01-06 16 views

Odpowiedz

4

ten powinien pracować dla Ciebie. Użyj zwróconego identyfikatora URI z Picasso.

(wywodzą się z: is there away to get uri of bitmap with out save it to sdcard?)

public Uri getImageUri(Context inContext, Bitmap inImage) { 
    ByteArrayOutputStream bytes = new ByteArrayOutputStream(); 
    inImage.compress(Bitmap.CompressFormat.JPEG, 100, bytes); 
    String path = MediaStore.Images.Media.insertImage(inContext.getContentResolver(), inImage, "Title", null); 
    return Uri.parse(path); 
} 
Powiązane problemy